From b2a0114b3272a7ba65666a80ccf1b24408f0640d Mon Sep 17 00:00:00 2001 From: Spencerscooper Date: Tue, 5 Dec 2023 06:42:33 +0000 Subject: [PATCH] Challenges 9 --- Week-2/mathquiz/challenge9.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Week-2/mathquiz/challenge9.py diff --git a/Week-2/mathquiz/challenge9.py b/Week-2/mathquiz/challenge9.py new file mode 100644 index 0000000..b73e978 --- /dev/null +++ b/Week-2/mathquiz/challenge9.py @@ -0,0 +1,12 @@ +from random import randint +#Challenge 9 + +win1 = randint(1,10) +win2 = randint(11,20) +win3 = randint(21,30) + +winners = str(win1) + " " + str(win2) + " " + str(win3) +print(winners) +for winner in winners: + print(winner) +