0
An if else Python statement evaluates whether an expression is true or false. If a condition is true, the âifâ statement executes. Python if else statements help coders control the flow of their programs. When you're writing a program, you may want a block of code to run only when a certain condition is met.
Ex :
flag = True
if flag==True:
print("Hello world")



