Question: Write a python program that asks for: 1. the hour 2. the minutes 3. am or pm and creates a single string variable with the

 Write a python program that asks for: 1. the hour 2.

Write a python program that asks for: 1. the hour 2. the minutes 3. am or pm and creates a single string variable with the data properly formated. Use concatenation to create the value in this variable. Then print out that variable. For example, the inputs: 6 45 pm would create a string variable whose value would be: "6:45 pm" and that is what will be printed on the screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!