Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Why won't my Python script work?
This is my script:
http://s28.postimg.org/z2eax7p9p/Dtabase.png
Basically it is a very simple Database and the user can grab the data from the script by inputting a name. E.g John Smith.
When i try and run it i get this error:
print "Name: %s" % user1
^
SyntaxError: invalid syntax
Process finished with exit code 1
I probably made a very stupid mistake.
Thanks in advance!
1 Answer
- GreywolfLv 77 years ago
You may have written your program with the syntax for Python 2 but are trying to run it with Python 3 (or the other way round - I just know that the syntax for "print" is different between the two).