if statement

Lesson Progress
0% Complete

Using an if… statement will return either True or False.(program block will execute only if True)

In this example, we use two variables, a and b, using if statement here we can find which number is greater or smaller than other.

a = 33
b = 200
if b > a:
    print("b is greater than a")