Bridge between Scratch and Python
Maybe it is a bit hard to switch from a visual programming language like Scratch to a “real” one. To make the transition smoother here is a nice tool where you can build Scratch-like blocks and in parallel you can see the equivalent Python code.
You can sign up to trinket.io with your Google account.
Here is a simple polygon drawer example:
https://trinket.io/embed/blocks/2fe2a045af
…and a simple but magical recursion example: