I guess you know better why it is not working here. I just do not get the space here.
Python 3 requires parentheses for the print statement, but Python 2 doesn't. Try "print('Yes')" in Python 3.
With respect, you seem to be struggling even with the basic "Hello world" stuff here. It might be wise to take some time to read a little about how Python works, rather than hacking randomly in the hope of hitting the correct approach.
No more Blub for me, thank you, Vicar.
Joined: Oct 20, 2008
Yes, it is working now. Wonder why they changed the syntax?
Linux Journal wrote:Of course, the obvious questions have to be asked: "Why introduce a change like this at all?" and "Why did the Python developers break most every existing Python program?".
It's possible to answer both of these questions with one answer: because it made sense to do so. The 2.x print command was always used as if it were a function, even though it was a command, which meant it was classed in with the likes of while, if, try, def and else, when it probably shouldn't have been. In Python, all function names have a trailing (), such as int(), input(), float(), range() and so on. As print was always more of a function than a command, it becomes print() in Python 3 which, of course, makes perfect sense, even though it breaks all that code!