Apr-24-2017, 02:16 PM
(This post was last modified: Apr-24-2017, 02:17 PM by ichabod801.)
If you are using Python 3.x, input returns a string. You need to convert to integer (or float, if that is what you are expecting).
>>> int('801') == 801 True >>> 4 * int('27') 108The float() function does the same for numbers with a decimal part.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures