I am running a print command on the interpreter that prints this error:
Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> Print ("Hello World")
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
Print ("Hello World")
NameError: name 'Print' is not defined
>>> Print ('Hello World')
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
Print ('Hello World')
NameError: name 'Print' is not defined
>>> Print("Hello World")
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
Print("Hello World")
NameError: name 'Print' is not defined
How can Print
not be defined?
Function and keyword names are case-sensitive in Python. Looks like you typed Print
where you meant print
.
Python is case sensitive.
print('Hello World')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With