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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -