i = 123 f = 45.6 s = "this is a string" list_of_stuff = ["foo", "bar", "baz"] print(i) print(f) print(s) print(list_of_stuff)
The print() function writes to the console area, the black rectangle at the bottom of the Processing environment. This function is often helpful for looking at the data a program is producing.
Using print() on an object will output a string representation of that object, as determined by its internal __str__ and __repr__ methods (more information here).
In Python Mode, print() and println() are functionally identical.