On 2021-09-04, Hope Rouselle <hrouse...@jevedi.com> wrote: > Igor Korot <ikoro...@gmail.com> writes: > >> Hi, >> Will this syntax work in python 2? > > If you say > > print(something) > > it works in both.
But it doesn't always work the _same_ in both. If you're expecting some particular output, then one or the other might not won't "work". > So, stick to this syntax. Only if you import print_function from __future__ in 2.x -- Grant -- https://mail.python.org/mailman/listinfo/python-list