Commit 40cb6214 by BellCodeEditor

save project

parent bcc2cebb
Showing with 26 additions and 8 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91] import turtle
n=len(alist)
for i in range(0,n-1): pen = turtle.Turtle()
for j in range(0,n-1): pen.color("sienna")
if alist[j]<alist[j+1]: w = turtle.Screen()
alist[j],alist[j+1]=alist[j+1],alist[j] w.bgcolor("wheat")
print(alist)
\ No newline at end of file pen.left(90)
pen.up()
pen.backward(150)
pen.down()
def tree(n):
if n >= 50:
pen.forward(n)
pen.right(30)
tree(n-50)
pen.left(60)
tree(n-50)
pen.right(30)
pen.up()
pen.backward(n)
pen.down()
tree(100)
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment