Dear All:
I am learning the ‘input’ fuction by follow the intro book to write the script in command window, but it returns back a red message. It is weird to me as I just copy the script line from book to test, but without getting back a same answer as it is written in the book.
Here I type the sentence ‘CHUCK’ as written in the book.
Below it the sampe and what I typed in Pyton in rhino.
Could any professor tell me why this happens? It is very simple line that I didn’t expect to meet such problem…
MY CODE:
name = input('What is your name?')
print(name)
THE ERROR MESG IS HERE:
Message: name 'CHUCK' is not defined
Traceback:
line 1, in <module>, "C:\Users\Lenovo\AppData\Local\Temp\TempScript.py"
line 1, in <module>, "<string>"
Thanks in advance!
7 posts - 3 participants
