Module 6 Assignment: Revising Code & Manipulating Time

This module was a rollercoaster for me. I could not get the first section of the module to run after several tries. 

The objective:

Here's my initial code:

Here's the hint the professor posted:


I believed I was on the right track because what I came up with was similar to the hint but I could not get either section of code to work. They both run but will not produce any output for me. I'm looking forward to seeing where I went wrong.

In contrast, the latter parts of this assignment went smoothly for me. 

Part II) Asked us to add the timedelta to the datetime, subtract 60 seconds, and add 2 years. 



Part III) Asked us to create a timedelta object representing 100 days, 10 hours, and 13 minutes.



Part IV)  Lastly, this part asked for a function that takes two arguments (feet and inches) with a time object. 



Comments