Learn Python — conditional statement ( if, if else )

Now I am looking for second best thing in any language. It is a conditional statement. Conditional statement makes our conversation more interesting and plays important roles to conclude conversations (Sometimes 😛). This helps same way in programming languages too.

If

student_passed = true
if student_passed:
print(“Congratulations!!!”)

If… else

student_passed = true
if student_passed:
print(“Congratulations!!!”)
else:
print(“Please collect your exam results from the office”)

Originally published at Nikhil Gohil.

Like what you read? Give Nikhil Gohil a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.