Computers and Technology, 06.04.2021 08:20 dej33
Can find error , suppose to print what season it is and if fails : Traceback (most recent call last):
File "main. py", line 4, in
input_month = input()
EOFError: EOF when reading a line
Here's the code .
input_month = input()
input_day = int(input())
input_month = input()
input_day = int(input())
if input_month in ('January', 'February', 'March'):
season = 'winter'
elif input_month in ('April', 'May', 'June'):
season = 'spring'
elif input_month in ('July', 'August', 'September'):
season = 'summer'
else:
season = 'autumn'
if (input_month == 'March') and (input_day > 19):
season = 'spring'
elif (input_month == 'June') and (input_day > 20):
season = 'summer'
elif (input_month == 'September') and (input_day > 21):
season = 'autumn'
elif (input_month == 'December') and (input_day > 20):
season = 'winter'
print("Season is",season)
Answers: 3
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
Computers and Technology, 24.06.2019 14:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 1
Can find error , suppose to print what season it is and if fails : Traceback (most recent call last)...
History, 11.11.2020 01:00
Mathematics, 11.11.2020 01:00
English, 11.11.2020 01:00
Business, 11.11.2020 01:00
Mathematics, 11.11.2020 01:00
Mathematics, 11.11.2020 01:00
Social Studies, 11.11.2020 01:00
Chemistry, 11.11.2020 01:00