Writing your own python script


I’M trying to write a script and so when I write raw_input
It says “name ‘raw_input’ is not defined”


what python version are you using? Check that the built-in function you want to use exist in the python version you are using.


I think you are using python 3 , as in python 3 the function raw_input has been replaced.
I saw that in the courses that most of some codes are from python 2.
raw_input has been changed to input() i think. A useless change.