I'm learning Python and I'm lost atm :
from random import randint
x = 10
y = 4
hit = randint(1,100)
while x > 0:
if hit >= 50:
print "you hit for %d" % y
x -= y
elif hit < 50:
print "you miss"
What I'm tryng to do is get a loop going that every time runs a "new" if I hit or if I miss untill x = 0. Thanks.