Python Forum
SyntaxError: Missing parentheses in call to 'print'
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SyntaxError: Missing parentheses in call to 'print'
#2
you are using python3 (good), but maybe your book is targeted at python2. If this is the case - change the book you are using.
As to the particular error - in python2 print is a statement, while in python3 it is a function thus it requires parentheses.
On the other hand python3 uses input, while python2 equivalent is raw_input, so I'm not 100% your book is for python2. If it is python2 book and teaches you to use input in python2, it's a poor textbook, definitely don't use it.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: i need help - by buran - Jun-15-2018, 01:13 PM
RE: i need help - by volcano63 - Jun-15-2018, 02:23 PM
RE: i need help - by buran - Jun-15-2018, 03:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Call to a print in a defined function leodavinci1990 1 1,927 Nov-20-2019, 01:45 AM
Last Post: ichabod801
  Write only data not >> () << parentheses zinho 2 3,481 Jun-28-2017, 02:28 PM
Last Post: zinho

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020