0

this question should be really simple, but since im a noob to python I have no idea what to do here.

the code that I sent was:

print("what is your name?")
name=input()

then this error would appear when I tried to run it:

name '(namethatwasinput)' is not defined

it worked before so i have no idea what's going on, can anyone help?

C. Fennell
  • 992
  • 12
  • 20
nadine
  • 11
  • 1
    Does this answer your question? [input() error - NameError: name '...' is not defined](https://stackoverflow.com/questions/21122540/input-error-nameerror-name-is-not-defined) – jonrsharpe Oct 22 '20 at 10:35

1 Answers1

0

try using

name = input("what's your name: ")