Django Book, The - 2.0. How to Think Like a Computer Scientist. Invent Your Own Computer Games with Python. Natural Language Processing with Python. Non-Programmer's Tutorial for Python 3. All example Python source code in this tutorial is granted to the public domain.
Therefore you may modify it and relicense it under any license you please. Since you are expected to learn programming, the Creative Commons Attribution-ShareAlike license would require you to keep all programs that are derived from the source code in this tutorial under that license. Since the Python source code is granted to the public domain, that requirement is waived.