Skip to content

Commit

Permalink
Merge pull request #856 from lucasmarcel/patch-1
Browse files Browse the repository at this point in the history
Update tasks.ipynb
  • Loading branch information
dbarrosop authored Aug 30, 2023
2 parents 107d6dd + c258d33 commit 719b57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/tasks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
" )\n",
"\n",
" # let's inform if we counted even or odd times\n",
" even_or_odds = \"even\" if number % 2 == 1 else \"odd\"\n",
" even_or_odds = \"even\" if number % 2 == 0 else \"odd\"\n",
" return Result(\n",
" host=task.host,\n",
" result=f\"{task.host} counted {even_or_odds} times!\",\n",
Expand Down Expand Up @@ -224,7 +224,7 @@
"\u001b[1m\u001b[36mCounting to 5 while being very polite*******************************************\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[34m* host1.cmh ** changed : False *************************************************\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[32mvvvv Counting to 5 while being very polite ** changed : False vvvvvvvvvvvvvvvvvv INFO\u001b[0m\n",
"\u001b[0mhost1.cmh counted even times!\u001b[0m\n",
"\u001b[0mhost1.cmh counted odd times!\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[32m---- Greeting is the polite thing to do ** changed : False --------------------- INFO\u001b[0m\n",
"\u001b[0mhost1.cmh says hi!\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[32m---- Counting beans ** changed : False ----------------------------------------- INFO\u001b[0m\n",
Expand All @@ -234,7 +234,7 @@
"\u001b[0m\u001b[1m\u001b[32m^^^^ END Counting to 5 while being very polite ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[34m* host2.cmh ** changed : False *************************************************\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[32mvvvv Counting to 5 while being very polite ** changed : False vvvvvvvvvvvvvvvvvv INFO\u001b[0m\n",
"\u001b[0mhost2.cmh counted even times!\u001b[0m\n",
"\u001b[0mhost2.cmh counted odd times!\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[32m---- Greeting is the polite thing to do ** changed : False --------------------- INFO\u001b[0m\n",
"\u001b[0mhost2.cmh says hi!\u001b[0m\n",
"\u001b[0m\u001b[1m\u001b[32m---- Counting beans ** changed : False ----------------------------------------- INFO\u001b[0m\n",
Expand Down

0 comments on commit 719b57c

Please sign in to comment.