I've written some code:
mon=10
a=1
print("You have",mon,"pounds")
bet=input("How much do you want to bet?")
if bet % 1==0:
bet=int(bet)
else:
print("Give me a whole number please")
But when I answer I get:
Traceback (most recent call last):
if bet % 1==0:
TypeError: not all arguments converted during string formatting