Commit da0d7877 by BellCodeEditor

auto save

parent 88372525
Showing with 17 additions and 2 deletions
def peach(n):
if n == 10:
return 1
num = (peach(n+1)+1)*2
return num
peach_num = peach(10)
print(peach_num)
import turtle import turtle
pen =turtle.Pen() pen =turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
colors=["green","red","orange","yellow"]
for i in range(1,300): for i in range(1,300):
pen.forward(distance) pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91) pen.right(91)
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
j = 5
i = 7
print(j,'*',i,'=',(j * i))
\ 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