I'm making a basic coin flipper and for some reason, it is always flipping heads
.
import random
def flip():
flip = random.randint(1,100)
if flip >= 48 & flip < 98:
print('heads')
elif flip <= 48:
print('tails')
else:
print('Whoa it landed on its side')
flip()
pls help
Aucun commentaire:
Enregistrer un commentaire