PFP191_-_PE_-_SP_2025_3489.webp
Riza85

PFP191_-_PE_-_SP_2025_3489.webp

  • Media owner Riza85
  • Ngày thêm
Kizspy.me
° Do not edit given statements in the main function. If you change, the marking software can not
mark and the score will be 0.
===================
Question 1: (2.5 marks)
===============
The given file Q1.py contains statements to input an integer month. You should write statements to print
the season corresponding to the entered month. If the month is out of scope from 1 to 12, then print an
error.
Hints:
-Each season has 3 months named sequentially as Spring, Summer, Autumn, Winter.
Notes:
-Do not edit given statements in the main function.
- You can create new function(s) if you see it is necessary.
Sample input and output:
Input: 3
Input: 4
Input: 9
After processing: Spring
After processing: Summer
After processing: Autumn
Output for marking:
Output for marking:
Output for marking:
OUTPUT:
OUTPUT:
Spring
Summer
OUTPUT:
Autumn
Input: 10
Input: 15
After processing: Winter
After processing: Error
Output for marking:
OUTPUT:
Output for marking:
OUTPUT:
Zoom
+ 100%
Close

Thông tin

Category
PFP191
Thêm bởi
Riza85
Ngày thêm
Lượt xem
2,746
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom