Share your repls and programming experiences

← Back to all posts
MyReplSMP
NareinMOHAN (0)

...import turtle

boi = turtle.Turtle()
boi.color("green")
boi.speed(10)

def drawLeTriangle(x, y):
a = int((x x) - (y y))
b = int(2 x y)
c = int((x x) + (y y))

print(a, "is a")

print(b, "is b")

print(c, "is c")

boi.goto(a,b)
boi.goto(a, 0)
boi.goto(0, 0)

drawLeTriangle(5, 2)