0

I'm getting this every time I try and write Hello, World in Python I get this. I'm using Pycharm 3

C:\Python33\python.exe C:/Users/Alex/PycharmProjects/Learning/Helloworld
  File "C:/Users/Alex/PycharmProjects/Learning/Helloworld", line 1
    print "Hello, World"
                       ^
SyntaxError: invalid syntax

Process finished with exit code 1
5
Contributors
6
Replies
39
Views
3 Years
Discussion Span
Last Post by ishaan3731
0

It's fixed my brother solved it. Thanks slate. :)

Edited by Alex_20

0

I'm just a Python learner myself and I also struggled wit thisone.
In newer versions of Python (Python 3) print has become a function, so print("hello") should work.

0

Thanks ddanbe, :). I was seeing alot of tutorials that was saying,

print "Hello, World!"

but it didn't work.

0

Actually, that works for 2.7, it depends on what version of Python you are using.

0

you must try python course at coursera.... its just awesome(even if u dont have time to do the assignments )

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.