Commit 146b5b29 by BellCodeEditor

auto save

parent fc46aef3
Showing with 18 additions and 0 deletions
import turtle
pen = turtle.Pen()
colors=["red","orange","yellow","green"]
for i in range(1,300):
pen.forward(i)
pen.pencolor(colors[i%4])
pen.right(91)
turtle.done()
\ No newline at end of file
list=[2,3,1,4,5,9,8,5,4,3,2]
n=len(list)
for i in range(n-1):
for j in range(n-1):
if list[j]<list[j+1]:
list[j],list[j+1]=list[j+1],list[j]
print(list)
\ 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