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
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
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs