Question: Can someone please explain how to do this in Python? I'm confused Write code to create the following functionality a. Import the random library b.

 Can someone please explain how to do this in Python? I'm

Can someone please explain how to do this in Python? I'm confused

Write code to create the following functionality a. Import the random library b. Create a function named get_year_born which accepts nothing (has no parameters) and prompts the user for the year they were born. This function needs to return an integer representation of the user's response. C. Create a function named get_number_to_show which accepts nothing and prompts the user for the number of date and time pairs to show. This function needs to return an integer representation of the user's response. d. Create a function named get_random_time which accepts nothing and returns a string representation of a random time in 24-hour format. The time must be between 00:00 and 23:59 (inclusive). i. You must use the randrange function. 1. Do not use the randint function. ii. Hours must be between 00 and 23 (inclusive). iii. Minutes must be between 00 and 59 (inclusive). iv. Hours and minutes must be in 2-digit format

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!