Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How to fix invalid syntax error when using “print”?

Asked by Cameron Oliver Jun 7, 2021 4.0K views 1 answer
Share

About this question

I am new to  Python and can't even write the first example:

print 'SyntaxError: invalid syntax'

this gives SyntaxError: invalid syntax


Why is this? I'm using version 3.1

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.