Dec-01-2017, 05:59 AM
I am newbie here. I don't have knowledge of python program. after some reading I tried to write one program I just want to write simple program that will take input name from user and print the name on screen.
I have this program. when I enter my name I get error
I have this program. when I enter my name I get error
>>> person = input('Enter your name: ') print('Hello', person) Enter your name: rehan Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> person = input('Enter your name: ') File "<string>", line 1, in <module> NameError: name 'rehan' is not defined >>>