subject
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)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
What type of weird relationship this is analogy show? dissolve: solidify: : noise: silence
Answers: 2
question
Computers and Technology, 21.06.2019 21:00
When a rectangular region is defined using an appropriate style, which value matches the specified edge of the clipping region to the edge of the parent element?
Answers: 3
question
Computers and Technology, 22.06.2019 10:40
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
You know the right answer?
Can find error , suppose to print what season it is and if fails : Traceback (most recent call last)...
Questions
question
Mathematics, 18.12.2020 01:00
question
Advanced Placement (AP), 18.12.2020 01:00
question
Arts, 18.12.2020 01:00
question
Mathematics, 18.12.2020 01:00
question
Arts, 18.12.2020 01:00
question
World Languages, 18.12.2020 01:00
question
English, 18.12.2020 01:00
Questions on the website: 13722363