Skip to content
Sign upLog in
← Back to Community

PRINT Doesn’t work?

Profile icon
ConnorAdams

While trying to code, I typed PRINT “HELLO WORLD” and an error appeared. Is there something wrong with the compiler? It works fine on all of my other compilers.

Voters
Profile icon
ConnorAdams
Comments
hotnewtop
Profile icon
Geocube101

Using python 3, print was turned into a function.
Correct Code: print("HELLO WORLD")

Profile icon
yuhan240

Your need to do print(HELLO WORLD)

Profile icon
[deleted]

At this moment you are coding in python 2.7. But if you are running a python 3 you will have to put brackets around it. Repl.it does support python 2.7.