I have decided to learn how to program this week. Currently I am enjoying it.
I have made a extremely basic program using what I learned about inputs and outputs, it is a bit crude.
Code:
person = input ('Enter your name: ')
print ('I hate the name', person)
I saved it as program.py and in the terminal I used the command python program.py. I got a strange error,
Enter your name: C
Traceback (most recent call last):
File "hello_you.py", line 1, in <module>
person = input('Enter your name: ')
File "<string>", line 1, in <module>
NameError: name 'C' is not defined
What did I do wrong? I do I fix this?
_________________
"God may not play dice with the universe, but something strange is going on with prime numbers."
-Paul Erdos
"There are two types of cryptography in this world: cryptography that will stop your kid sister from looking at your files, and cryptography that will stop major governments from reading your files."
-Bruce Schneider
Last edited by Rudin on 01 Dec 2015, 6:39 pm, edited 2 times in total.