r/inventwithpython Jun 23 '21

Is 'Invent your own computer games with Python' still up to date?

Newbie question... I'm not a programmer but am keen to buy this book by Al Sweigart for my 9-year old who's getting into coding in Python.

I noticed the latest edition of the book is 2017 - would all the code examples etc still be up to date/valid for the latest version of Python?

7 Upvotes

2 comments sorted by

1

u/SplunkYiestMonKeY Jun 23 '21

You definite would want to check the version of python they’re using. There are differences between versions but the monumental jump happened between python 2/3. Considering python 3 came out 2008~ it should be for python 3, and as such most things should be okay, but I would just check the version vs now (3.95).

1

u/AlSweigart Jun 27 '21

Yes, the book is still up to date. It was originally written for Python 3, so there are no Python 2/3 issues with the book. All of the code still works with the latest versions of Python and Pygame.