...

Web Technologies - PYTHON

Back to Course

Lesson Description


Lession - #274 Python If..Else


An if else Python statement evaluates whether an expression is true or false. Assuming a condition is valid(true>
, the "if" condition executes. In any case, the "else" part executes. Python if else statements assist coders with controlling the progression(flow>
of their program.

Let's see a example



a = 20
b = 201

if b > a:
  print("b is greater than a">

Output


Try it here