@BrysonHaman/

Lab 2.05 extension

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
prize_list=["new car","panini press","basket of exotic butters","odd looking stone arrow","holy grail","seven glass balls with stars inside","large hammer","various cheeses", "Every Pop! figure ever","the entire US defense budget"]
choice=input("Pick a door number, the numbers are 1-10.")
if (choice==1):
  print(prize_list[0])
if (choice==2):
  print(prize_list[1])
if (choice==3):
  print(prize_list[2])
if (choice==4):
  print(prize_list[3])
if (choice==5):
  print(prize_list[4])
if (choice==6):
  print(prize_list[5])
if (choice==7):
  print(prize_list[6])
if (choice==8):
  print(prize_list[7])
if (choice==9):
  print(prize_list[8])
if (choice==10):
  print(prize_list[9])
change=input("Do you want to change your answer?")
if(change=="yes"):
  choice=input("Pick a door number, the numbers are 1-10.")
if(change=="no"):
  StopIteration