https://projects.raspberrypi.org/en/collections/python can be one good start.
Your number one resource will be Think Python book. Download it now.
First nine chapters are what you should focus on initially.
However, without practice, what you read is of little use. Going through many practice problem is a great way to solidify your understanding of how the code should work. The practice problems suggested below are designed to have low overhead: short problem statements (like an exam), nothing to install, immediate feedback in the browser, and there’s lots of them to build up those skills.
Head to https://codingbat.com/python for some practice. Try to complete the exercises in this order:
- https://codingbat.com/python/Warmup-1
- https://codingbat.com/python/Warmup-2
- https://codingbat.com/python/String-1
- https://codingbat.com/python/List-1
- https://codingbat.com/python/Logic-1
- https://codingbat.com/python/Logic-2
- https://codingbat.com/python/String-2
- https://codingbat.com/python/List-2
Go ahead! Click on a problem, type some code into the method body, hit the Go button, and work it from there until you get the green check mark. Keep the “Think Python” book handy for any reference to syntax.
This is another online Python Text book.
Another great resource is https://inventwithpython.com/, a collection of great books on Python. You can start with this excellent book on creating simple games with Python. This book can really get you going in the right direction.
Christian Thompson’s YouTube channel has wonderful Python tutorials for beginners. Check out the one on how to program a Pong clone. https://www.youtube.com/channel/UC2vm-0XX5RkWCXWwtBZGOXg
For some advanced programming practice, check https://leetcode.com/.