Below is my code:
randomOne = int(str(raw_input('Enter the first number.')))
randomTwo = int(str(raw_input('Enter the second number.')))
I always get this error message:
Traceback (most recent call last):
File "C:/Users/*****/Desktop/Pythons/randomNumberGenerator.py", line 5, in <module>
randomOne = int(str(raw_input('Enter the first number.')))
NameError: name 'raw_input' is not defined
I do not understand at all what is going on, if i could have some help?
raw_inputwas removed in Python 3, and its behavior switched toinput.stron the result ofraw_input? What are you expecting that to do? (In every version of Python that hadraw_input, from 0.x to 2.7, it returns astr, so callingstron it will just make a copy.)raw_input, you'l find "PEP 3111:raw_input()was renamed toinput()…"