Skip to content

Commit ddcca1e

Browse files
authored
Update SPS_functies.ipynb
1 parent d78dcb0 commit ddcca1e

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

book/some_content/SPS_functies.ipynb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
" elif (speler == 'steen' and computer == 'schaar') or \\\n",
1717
" (speler == 'papier' and computer == 'steen') or \\\n",
1818
" (speler == 'schaar' and computer == 'papier'):\n",
19-
" print('Punt voor jou!')\n",
19+
" print(\"Punt voor jou!\")\n",
2020
" return 1\n",
2121
" else:\n",
22-
" print('Punt voor de computer!')\n",
22+
" print(\"Punt voor de computer!\")\n",
2323
" return 2\n",
2424
"\n",
2525
"def speelSpel():\n",
2626
" score_speler = 0\n",
2727
" score_computer = 0\n",
2828
"\n",
2929
" for teller in range(0, 5):\n",
30-
" keuze = input('Steen, papier, schaar? ').lower()\n",
30+
" keuze = input(\"Steen, papier, schaar? \").lower()\n",
3131
"\n",
3232
" computerkeuze = random.randint(1, 3)\n",
3333
" if computerkeuze == 1:\n",
@@ -37,7 +37,7 @@
3737
" else:\n",
3838
" computer = 'schaar'\n",
3939
"\n",
40-
" print(f'Computer kiest: {computer}')\n",
40+
" print(f\"Computer kiest: {computer}\")\n",
4141
"\n",
4242
" resultaat = bepaal_winnaar(keuze, computer)\n",
4343
"\n",
@@ -48,17 +48,18 @@
4848
"\n",
4949
" print(f\"Stand: {score_speler} - {score_computer}\")\n",
5050
"\n",
51-
" print('--- EINDSTAND ---')\n",
51+
" print(\"--- EINDSTAND ---\")\n",
5252
" if score_speler > score_computer:\n",
53-
" print('Jij bent de winnaar!')\n",
53+
" print(\"Jij bent de winnaar!\")\n",
5454
" elif score_speler < score_computer:\n",
55-
" print('De computer heeft gewonnen.')\n",
55+
" print(\"De computer heeft gewonnen.\")\n",
5656
" else:\n",
57-
" print('Het is gelijkspel!')\n",
57+
" print(\"Het is gelijkspel!\")\n",
5858
"\n",
5959
"speelSpel()\n",
6060
"```\n",
6161
"</details>\n"
6262
]
6363
}
6464

65+

0 commit comments

Comments
 (0)