Question: python Question 4: (Textbook Page 82, Q38) Python comes with hundreds of modules. Here is a challenge for you: find a module that you can
Question 4: (Textbook Page 82, Q38) Python comes with hundreds of modules. Here is a challenge for you: find a module that you can import that will generate today's date so you can print it. Use your favorite search engine for help in finding which module you need and how to use it. In the end, write a program that prints today's date. For example, an execution could look like this: The date today is: 2015-09-18 Question 5: Suppose John and Bill worked for some time and we want to calculate the total time both of them worked. Write a program that reads a number of days, hours, minutes each of them worked, and prints the total time both of them worked together as days, hours, minutes. Note: there are 24 hours in a day and 60 minutes in an hour. For example, an execution could look like this: Please enter the number of days John has worked: 2 Please enter the number of hours John has worked: 12 Please enter the number of minutes John has worked: 15 Please enter the number of days Bill has worked: 3 Please enter the number of hours Bill has worked: 15 Please enter the number of minutes Bill has worked: 20 The total time both of them worked together is: 6 days, 3 hours and 35 minutes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
