Commit 744a556e by BellCodeEditor

auto save

parent 53bc4946
Showing with 62 additions and 0 deletions
i=0
for a in range(100):
for b in range(10000):
i+=1
print(i)
\ No newline at end of file
import time
s=time.time()
lt=[]
for a in range(0,100):
for b in range(0,100):
lt.insert(0,0)
e=time.time()
r=e-s
print(r)
\ No newline at end of file
li=['1','1']
for i in range(10000):
li.append(1)
print(li)
\ No newline at end of file
alist=[15,21,9,14,24,18]
n=len(alist)
for i in range(n-1):
for j in range(n-1):
if alist[j]<alist[j+1]:
alist[j],alist[j+1]=alist[j+1],alist[j]
print(alist)
\ No newline at end of file
st='to be or not to be that is a question'
list=st.split(' ')
e={}
for i in list:
if i not in e:
e[i]=1
else:
e[i]+1
print(e)
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.pensize(10)
pen.goto(-90,0)
for i in range(3):
pen.forward(180)
pen.left(120)
pen.goto(0,0)
pen.fillcolor('blue')
pen.begin_fill()
pen.circle(50)
pen.end_fill()
pen.goto(-90,0)
pen.left(60)
pen.forward(180)
pen.goto(0,0)
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