Closed Enrique-ZA closed 4 years ago
Hi @Enrique-Za!
This is not a bug because in Python 2 print
is not a function, and Processing Python Mode is based on Jython (Python 2), so you are using the print statement followed by a tuple!
Check https://docs.python.org/3/whatsnew/3.0.html to have a better picture. Then you can have the Python 3 behaviour using this first thing in yout sketch:
from __future__ import print_function
Hi @villares, sorry, my mind is so used to python3, that I didn't even stop to think it might be python2 based. Thanks for clearing that up!
Output: ('I am ', 'John', 'Smith')
The correct output is:
I am John Smith
The above code is the same as using:
Output: I am John Smith
This is also the same as:
Output: I am John Smith