diff --git a/docs/tutorial/tasks.ipynb b/docs/tutorial/tasks.ipynb index f2c2d772..b282dd0f 100644 --- a/docs/tutorial/tasks.ipynb +++ b/docs/tutorial/tasks.ipynb @@ -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", @@ -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", @@ -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",