Skip to content

Commit

Permalink
Update 1_python_basics.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
RoRoJ authored Feb 14, 2024
1 parent c3ca779 commit 9d1d063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 1_python_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@
"source": [
"### Exercise 4\n",
"\n",
"Create a variable `seconds` that holds a value representing a number of seconds. Then, based on that variable, calculate and print the number of hours, minutes and seconds that it translates to. So, for example, for a value of 5000 seconds, it should output:\n",
"Create a variable `seconds` that holds a value representing a number of seconds. Then, based on that variable, calculate and print the number of hours, minutes and seconds that it translates to. So, for example, for a value of 5003 seconds, it should output:\n",
"\n",
"```\n",
"50391 seconds is: 1 hour, 23 minutes and 19 seconds\n",
"5003 seconds is: 1 hour, 23 minutes and 23 seconds\n",
"```\n",
"\n",
"Hint: you should use the modulo `%` operator.\n",
Expand Down

0 comments on commit 9d1d063

Please sign in to comment.