from random
import randint
print(
"Glücksrad-Simulation")
tries
= 10_000
money
= 2.0
counterOne, counterTwo, counterThree, counterFour
= 0,
0,
0,
0
for _
in range(tries):
money
-= 2
hit
= randint(
1,
4)
if hit
== 1:
counterOne += 1
money += 1
elif hit
== 2:
counterTwo += 1
money += 2
elif hit
== 3:
counterThree += 1
money += 3
else:
counterFour += 1
money += 4
print(
"Einsen:", counterOne)
print(
"Zweien:", counterTwo)
print(
"Dreien:", counterThree)
print(
"Vieren:", counterFour)
print(
"Guthaben:", money)