if, if else, if elif else
if
whether='sunny'
if whether=='sunny':
print("I WILL GO OUT SIDE")
if else
whether=str(input("enter your whether. "))
if whether=='sunny':
print("I WILL GO OUT SIDE")
else:
print("iwill not go out side")
if elif else
whether=input("enter your whether ")
if whether=='sunny':
print("I WILL GO OUT SIDE")
elif whether=='hot':
print("iwill not go out side")
elif whether=='cold':
print("i will play in side")
else:
print("sleep")
Comments
Post a Comment