Question: 4. Filename: assign3-8.py Write a program that takes the time in military format (e.g. 1 am is 0100 hours and 11 pm is 2300

4. Filename: assign3-8.py Write a program that takes the time in military

4. Filename: assign3-8.py Write a program that takes the time in military format (e.g. 1 am is 0100 hours and 11 pm is 2300 hours). The program should display the appropriate message based on the entered time. Use the following table. Time between 5 am and 12 pm between 12 pm and 4 pm between 4 pm and 7 pm between 7 pm and 5 am Input: a) python C:\Users eda\Data Programming\M3\assign3-8.py 1115 b) python C:\Users eda\Data Programming\M3\assign3-8.py 1425 c) python C:\Users eda\Data Programming\M3\assign3-8.py 0230 Output: a) Good morning b) Good afternoon Message Good morning Good afternoon Good evening Good night c) Good night

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python version 36 assign38py Python program that takes the time in mili... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!