Doing #100-days-of-code I have come across reeborg.ca or reeborg's world where people can practice various programming concepts using Python as well as Javascript in a visual way.
The Udemy course that I am following (by Angela Yu) has recommended using it for a few exercices to practice for loops and while loops .
It is a fun platform where there are around 50 visual challenges and you need to solve using functions, loops, ... Here is the one I did a couple of days ago.
The objective was to define a function ( turn_right() ), and use for loops to get the robot from point 1 to the end. There are some predefined functions such as turn_left() or move(). Simple but fun.
Here is the code which can be run in their environment:
def turn_right():
turn_left()
turn_left()
turn_left()
def jump():
move()
turn_left()
move()
turn_right()
move()
turn_right()
move()
turn_left()
for step in range(6):
jump()