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. 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
Get step-by-step solutions from verified subject matter experts
