Commit c52635a7 by BellCodeEditor

auto save

parent 8468c815
Showing with 48 additions and 0 deletions
def a(n):
if n==10:
return 1
b=(a(n+1)+1)*2
return b
c=a(1)
print(c)
\ No newline at end of file
def g(h):
if h==1:
return 1
j=g(h-1)
return j+h
k=g(100)
print(k)
\ No newline at end of file
import time
d1=time.time()
def a1(n):
if n<=2:
return 1
elif n>2:
b1=a1(n-1)+a1(n-2)
return b1
c1=a1(10)
print(c1)
e1=time.time()
f1=e1-d1
print(f1)
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.left(90)
pen.forward(100)
pen.right(30)
pen.forward(100000000)
pen.up()
pen.backward(100000000)
pen.down()
pen.left(60)
pen.forward(100000000)
pen.up()
pen.backward(100000000)
pen.right(30)
pen.backward(100)
\ 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