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‚ÄĚ)

Also published on Medium.

Leave a Reply

Your email address will not be published. Required fields are marked *