#956 Python

Zusammenfassung
Python Turtle. For-loop over list of colors. colors = ['red','orange','yellow','green','cyan','blue','purple','violet'] for color in colors: t.color(color) t.forward(10) t.left(10) Moving turtle to random position within some square borders. x = random.randint(-200,300) y = random.randint(-200,300) t.goto(x,y) Function start() def star(): for n in range (0,5): t2.forward(30) t2.left(144)
Hausaufgabe
1. Read about pygame library: https://www.pygame.org/docs/ 2. Get acquainted with replit.com