0

I was following a tutorial and this is the code I did in hello.py

name = input('enter name: ')

print('my name is ' + name)

above code gave me below error

enter name: cc
Traceback (most recent call last):
  File "/Users/james/Desktop/hello.py", line 1, in <module>
    name = input('enter name: ')
  File "<string>", line 1, in <module>
NameError: name 'cc' is not defined
akibo
  • 625
  • 11
  • 22

0 Answers0