Skip to content

Commit

Permalink
python-2 slides et fin du notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-plancq committed Sep 7, 2018
1 parent c6144cd commit a35de39
Show file tree
Hide file tree
Showing 3 changed files with 13,134 additions and 502 deletions.
10 changes: 4 additions & 6 deletions chifoumi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@
"winners = {'ciseaux': 'feuille', 'feuille': 'pierre', 'pierre':'ciseaux'}\n",
"if jeckel == heckel:\n",
" print(\"Égalité\")\n",
"elif (jeckel in winners.keys() and heckel == winners[jeckel]):\n",
"elif jeckel in winners.keys() and heckel == winners[jeckel]:\n",
" print(\"Jeckel a gagné\")\n",
"else:\n",
" print(\"heckel a gagné\")"
Expand All @@ -519,10 +519,8 @@
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"collapsed": true
},
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"def rules(heckel, jeckel):\n",
Expand All @@ -533,7 +531,7 @@
" winners = {'ciseaux': 'feuille', 'feuille': 'pierre', 'pierre':'ciseaux'}\n",
" if jeckel == heckel:\n",
" return(\"Égalité\")\n",
" elif (heckel == winners[jeckel]):\n",
" elif heckel == winners[jeckel]:\n",
" return(\"Jeckel a gagné\")\n",
" else:\n",
" return(\"Heckel a gagné\")"
Expand Down
Loading

0 comments on commit a35de39

Please sign in to comment.