3 ms·
Actually this is better !pip install ColabTurtle from ColabTurtle.Turtle import * initializeTurtle() def repeat(n, *commands): for _ in range(n)
by rrherr 5y ago
Actually this is better
!pip install ColabTurtle
from ColabTurtle.Turtle import *
initializeTurtle()
def repeat(n, *commands):
for _ in range(n):
for command in commands:
fn, *args = command
fn(*args)
repeat(5, (fd, 80), (rt, 144))