On Thu, Jan 9, 2020 at 3:45 PM Pete Helgren <pete@xxxxxxxxxx> wrote:
Pete, I'm always glad to see resources for learning Python on IBM i,
so thank you for sharing that.
One thing I think prospective readers need to know about your examples
is that most if not all of them are for Python 2, which is still
usable of course, but officially no longer supported by the official
Python development team (the ones behind python.org).
Fortunately, most if not all of your examples have only one
Python-2-specific feature, which is print statements. In Python 3,
these are replaced by print function calls. So where you have
print 'Hello, world!'
in Python 2, you have to change it to
for Python 3. It's a slightly annoying but very straightforward and
superficial change. There are other differences which are more
substantial, but so far I haven't seen any come up in your examples.
(I haven't looked at them all, though.)