python head first code example
Example 1: head first python
this is amazing book to learn Python Programming if you can't afford the book
then go to this link to download it for free
https://www.pdfdrive.com/head-first-python-a-brain-friendly-guide-e183836129.html
Example 2: head first python
It's a good book, but I'd personally recommend
Learn python 3 the hard way by by Zed Shaw