Every time I try to run the code i get "you lost" when i guessed the right number. tried moving stuff around but no solution.
this is my code
import random
numgened = random.randint(1,2)
print('Enter your bet amount:')
amtbet = input()
print('You have bet ' + amtbet)
print('Number to bet on:')
numbet = input()
print('You bet on ' + numbet)
print(numgened)
if numgened == numbet:
print('you won '+ amtbet)
else:
print('you lost '+ amtbet)
Aucun commentaire:
Enregistrer un commentaire