|
On Thu, Jan 9, 2020 at 3:45 PM Pete Helgren <pete@xxxxxxxxxx> wrote:
https://github.com/phelgren/OSSGarden/tree/master/pythonPete, 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
print('Hello, world!')
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.)
John Y.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.