STEP 15: Now let's format the new time so that we can display how it has changed.

  • Go to and drag Time Format - 09:45 AM into the bottom of the main function.
  • Change my_time to new_time and change my_datetime to new_datetime.
  • Inside the print statement, also change my_time to new_time.
  • Click Run then click on the Console button to see the new time!

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)