This is the first programming language I touched. Still missing REPEAT 5[FD 80 RT 144]
Here's the closest I got, but it's not pretty
!pip install ColabTurtle
from functools import partial as f
from ColabTurtle.Turtle import *
initializeTurtle()
def repeat(n, *commands):
for _ in range(n):
for command in commands:
command()
repeat(5, f(fd, 80), f(rt, 144)) !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))