Nov-20-2018, 02:13 AM
Basically,
That's how it works in Python 2.7 and earlier. In Python 3.0 and later, raw_input does not exist, and input works like raw_input in 2.7 (it just returns a string without trying to evaluate it.
If at all possible you should use Python 3.0 or later (current 3.7 I believe). End of life for Python 2.7 is in a little over a year.
raw_input = eval(input)
. The detail is that raw_input returns a string. However input tries to evaluate that string as a Python expression before returning the result.That's how it works in Python 2.7 and earlier. In Python 3.0 and later, raw_input does not exist, and input works like raw_input in 2.7 (it just returns a string without trying to evaluate it.
If at all possible you should use Python 3.0 or later (current 3.7 I believe). End of life for Python 2.7 is in a little over a year.
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