We will practice exercises from Wentworth2012.
input function helps in reading user input. Certain values are naturally positive (greater than zero). Your program should check this and return something like Error: waiting hours must be greater than zero in case the user inserts a negative number.
51 hours is 2 days and 3 hours. If you have issues with creating such a string, just print 2 and 3. To check if user entered integer number you can use suitable string method. Check Python documentation to learn more about strings (Text Sequence Type — str).
02_weekly_hw.py file (module) inside the project you have just created.
2+3+7+9+2+17+22+8.
02_weekly_hw.py file to BRUTE.
| Mark | Grade |
|---|---|
| >= 75 | First |
| [70-75) | Upper Second |
| [60-70) | Second |
| [50-60) | Third |
| [45-50) | F1 Supp |
| [40-45) | F2 |
| < 40 | F3 |