Question: Dictionary num _ to _ word contains multiple number and word pairs. Read integers start _ time and end _ time from input, representing an

Dictionary num_to_word contains multiple number and word pairs. Read integers start_time and end_time from input, representing an event's start and end times. Use num_to_word to access the corresponding word of each integer. Then, output the starting time as a word, followed by ' to ' and the ending time as a word.
Click here for example
Ex: If the input is:
12
7
then the output is:
twelve to seven
num_to_word =
1: 'one', 2: 'two', 3: 'three', 4: 'four'
5: five', 6: 'six', 7: 'seven', 8: 'eight',
}9: 'nine', 10: 'ten', 11: 'eleven', 12: 'twelve'
'.' Your code goes here '..
8 num1=int(input())
 Dictionary num_to_word contains multiple number and word pairs. Read integers start_time

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!