Commit 024e6eee by BellCodeEditor

save project

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