Skip to content

Commit

Permalink
minor 2020-06-16 exam fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLeoni committed Jun 16, 2020
1 parent 43921f9 commit d9599d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions exams/2020-06-16/exam-2020-06-16-solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -446,16 +446,16 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
"def duration(a, b):\n",
" #jupman-raise\n",
" last_time = a.split(':')\n",
" new_time = b.split(':')\n",
" gap = (int(new_time[0]) - int(last_time[0]))*60\n",
" gap += (int(new_time[1]) - int(last_time[1]))\n",
" asp = a.split(':')\n",
" bsp = b.split(':')\n",
" gap = (int(bsp[0]) - int(asp[0]))*60\n",
" gap += (int(bsp[1]) - int(asp[1]))\n",
" return gap\n",
" #/jupman-raise\n",
" \n",
Expand Down

0 comments on commit d9599d7

Please sign in to comment.