Python: If
print("hello world")
hat = 4
print(hat)
food = 3.456
green = 5
flower = 33
sum = green + food
diffrence = green - food
multiply = green * food
division = green / food
print(sum)
age = 15
if age > 18:
print("you are allowed to drive")
elif age < 18:
print("wait a couple more years")
elif age > 14:
print("go to driving school")
else:
print("you are not allowed to drive")
No comments:
Post a Comment