3.28 LAB: Seasons
Write a program that takes a date as input and outputs thedate's season. The input is a string to represent the month and anint to represent the day.
Ex: If the input is:
the output is:
In addition, check if the string and int are valid (an actualmonth and day).
Ex: If the input is:
the output is:
The dates for each season are:Spring: March 20 - June 20Summer: June 21 - September 21Autumn: September 22 - December 20Winter: December 21 - March 19
LAB ACTIVITY 3.28.1: LAB: Seasons 1 input_month = input() 2 input day int(input()) 3 4 Type your code here. " 5 Develop mode Submit mode Enter program input (optional) April 11 Run program Program output displayed here main.py Input (from above) →→→ Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box. main.py (Your program) 0/10 Load default template... Output (shown below)
3.28 LAB: Seasons Write a program that takes a date as input and outputs the date's season. The input is a string to rep
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am