Commit 32399d26 by BellCodeEditor

auto save

parent 15b74872
Showing with 39 additions and 0 deletions
list1=[15,30,25,17,87,88,27,89,76,19]
s = 0
for i in 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(120)
forward(80)
left(60)
forward(80)
right(30)
end_fill()
penup()
forward(120)
pendown()
setheading()
x+=30
penup()
setpos(0,-120)
pendown()
pencolor('red')
circle(120,360)
done()
\ No newline at end of file
n = int(input())
list = [15,30,25,17,87,88,27,89,76,19]
print(list[n-1])
\ 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