forked from fluff-otto/programmering1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bruh.py
26 lines (16 loc) · 759 Bytes
/
bruh.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import random
hero = 0
villain = 0
superhero_list = ["Captain America", "Thor", "Spiderman", "Hulk", "Iron Man", "Batman", "Superman", "Wonder Woman", "Ant Man"]
villain_list = ["Loki", "Thanos", "Ultron", "Venom", "Joker", "Bane", "Green Goblin", "Riddler", "Darkseid", "Dr Octopus"]
while True:
hero = random.randint(0,8)
villain = random.randint(0, 9)
print(superhero_list[hero],"vs", villain_list[villain],"\n")
vilken_du_vill_ha = input("vilken tror du kommer att vinna?")
if(vilken_du_vill_ha == superhero_list[hero]):
print("Du hade rätt!", "\n")
elif(vilken_du_vill_ha == villain_list[villain]):
print("Tyvärr du förlorade","\n")
else:
print("Varför är du dum i huvudet?!", "\n")