Commit 772d588b by BellCodeEditor

auto save

parent 09b267fb
Showing with 72 additions and 0 deletions
list=[15,30,25,17,87,27,89,76,19,]
n=int(input())
print(list[n-1])
list1=[15,30,25,17,87,88,27,89,76,19]
s = 0
for i in range (list1):
s = s + i
print(s)
\ No newline at end of file
from turtle import *
hideturtle()
x = 30
for i in range(12):
penup()
forward(120)
pendown()
fillcolor("yellow")
begin_fill()
right(30)
forward(80)
left(60)
forward(80)
left(120)
forward(80)
left(60)
forward(80)
right(30)
end_fill()
penup()
forward(120)
pendown()
setheading(x)
x += 30
penup()
setpos(0,-120)
pendown()
pencolor('red')
circle(120,360)
done()
\ No newline at end of file
from turtle import *
hideturtle()
x = 30
for i in range(12):
penup()
forward(1)
pendown()
fillcolor("yellow")
begin_fill()
right(30)
forward(120)
left(40)
forward(120)
left(30)
forward(120)
left(30)
forward(120)
left(15)
end_fill()
penup()
forward(120)
pendown()
setheading(x)
x += 30
penup()
setpos(0,23)
pendown()
pencolor('red')
circle(360,36)
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