The Forest Wiki has excellent support for teaching Python in the Browser.
There are 2 big advantages to teaching Python in the Browser.
the problem is that Python is not native to the browser. There are multiple solutions.
We focus on turtle graphics, that is the most fun, and has the best user experience. The teacher sets the assignments, the students do them. Even when the student is working from home, the teacher can monitor progress. If there is an issue, or during grading, the teacher can privately comment on that student's work. When the time is right, the teacher can check a box to publish the answers. When the time is up, the teacher can check another box to limit new submissions.
The students move through a series of steps.
t = turtle.Turtle()
for c in ['red', 'green', 'yellow', 'blue']: