Conditional statement (flow control)
What is flow control?
Flow control describes the order in which statements will be executed at runtime.
Conditional statement
if
if else
else if (elif)
if with condition
code:-
age=int(input("enter your age:"))
if age<18:
print('you are too young')
elif age>50:
print('you are too old')
else:
print('finding a girl for you')
Comments
Post a Comment