EXTEND: Great job creating your first program with an imported module! Let's make a few additions.

  1. Find the .ask() command that requests user input. Edit the text to ask for a number of days, weeks, or minutes.
  2. Next, find this line: my_timedelta·=·dt.timedelta(hours·=·add_time)¬
  3. Change hours in the parentheses to days, weeks or minutes depending on what you chose in .ask().

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)