if 18.5 <= weight_in_kg / (height_in_m)**2 < 25:
print("BMI is considered 'normal'.")
[/python]
[python]
if numer % 2 == 0:
print("The number " + str(number) + " is even.")
else:
print("The number " + str(number) + " is odd.")
[/python]
[python]
def garden_calendar(season):
if season == "spring":
print("time to plant the garden!")
elif season == "summer":
print("time to water the garden!")
elif season == "autumn" or season == "fall":
print("time to harvest the garden!")
elif season == "winter":
print("time to stay indoors and drink tea!")
elif:
print("I don't recognize that season")
[/python]
[python]
phone_balance = 7.62
bank_balance = 104.39
if phone_balance < 10:
phone_balance += 10
bank_balance -= 10
print(phone_balance)
print(bank_balance)
number = 145346334
if number % 2 == 0:
print("The number " + str(number) + " is even.")
else:
print("The number " + str(number) + " is odd.")
age = 35
free_up_to_age = 4
child_up_to_age = 18
senior_from_age = 65
concession_ticket = 1.25
adult_ticket = 2.50
if age <= free_up_to_age:
ticket_price = 0
elif age <= child_up_to_age:
ticket_price = concession_ticket
elif age >= senior_from_age:
ticket_price = concession_ticket
else:
ticket_price = adult_ticket
message = "somebody who is {} years old will pay ${} to ride the bus.".format(age,ticket_price)
print(message)