Python Multiplying Integers inside "print()" -
so have code (relevant code):
print("you have chosen bet on numbers") valin = input("how bet?: ") print("if lands on number, win", valin*2) what want print value of valin multiplied 2, have no idea how that! how ?
convert input string integer int:
valin = int(input("how bet?: ")) then proceed before.
Comments
Post a Comment