Question: Write a procedure called check_if_odd_time. The function will be accepting a list as a parameter. The list will contain numbers between 1 and 60 which
Write a procedure called check_if_odd_time. The function will be accepting a list as a parameter. The list will contain numbers between 1 and 60 which represent minutes. Analyse the numbers. In the order that the numbers occur in the parameter list. Print the number, followed by the statement "This minute is odd." if it is an odd number. Or print "Not an odd minute." if it is an even number. NB: The apostrophes ("") around the messages are not displayed in the print. They are there to help you copy paste the statements in your code. Look at the output of the examples. Do not call the procedure.
For example:
| Test | Result |
check_if_odd_time([1, 4, 5]) | 1 This minute is odd. 4 Not an odd minute. 5 This minute is odd. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
