I am not a python developer however. To print in python 3 you need to use brackets.RCobbTX wrote:I have both Python and Python3. Where can I read up on the differences. This Pi learning curve is pretty steep, do I really need both? The simple Print command - print "hello" - throws an error on Python3.
Code: Select all
print("hello")You don't need both of them, but the operating system does, as it contains quite a number of python (2.x) scripts. If you are a beginner, you should start directly with Python3.RCobbTX wrote:I have both Python and Python3. Where can I read up on the differences. This Pi learning curve is pretty steep, do I really need both? The simple Print command - print "hello" - throws an error on Python3.
And there is the reason why python 2 will never die.smithg400 wrote:There were substantial changes introduced in python3 which meant that most of the code previously developed for python2 no longer works with version 3. Generally the changes that need to be made are quite small (like the need for brackets), but they take time to implement and there is still lots of code that only works with python2.