Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 4.Температурен съветник
- # Въведете температура (цяло число):
- # Под 0 → "Много студено"
- # От 0 до 20 → "Хладно"
- # Над 20 до 35 → "Топло"
- # Над 35 → "Горещо!"
- temperature = int(input("Please enter an integer for temperature: "))
- if temperature < 0:
- print("Very cold!")
- elif temperature <= 20:
- print("Cool!")
- elif temperature <= 35:
- print("Warm!")
- else:
- print("Hot!")
Advertisement
Add Comment
Please, Sign In to add comment