the-honk/gcse computer science/year 9/python challenges/7 - TV.py

8 lines
288 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
time = int(input('How long on average do you spend watching TV a day? (Please answer in minutes.)'))
if time <= 120:
print('That shouldn\'t rot your brain too much.')
elif time <= 240:
print('Aren\'t you getting square eyes?')
else:
print('Fresh air beats channel flicking.')