Commit 024e6eee by BellCodeEditor

save project

parent aed5fbff
Showing with 2 additions and 3 deletions
......@@ -4,14 +4,13 @@ import random
def tree(n):
if n>0:
if n <=12:
color_list = ["snow","lightcoarl"]
c = random.choice(color_list)
d = ["snow","lightcoral"]
c = random.choice(d)
pen.color(c)
pen.pensize(n/3)
else:
pen.color("sienna")
pen.pensize(n/10)
pen.pensize(n/10)
pen.forward(n)
a=random.randint(0,30)
b=random.randint(0,15)
......
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