Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- age = 10
- weight = 22.6
- name = "Bruce"
- colors = ["red", "green", "blue"]
- marks = [12, 28, 122, 91, 89]
- # random_values = ["red", 12, 90.2, [12, 89, "penguin"]]
- # print(age)
- # print(weight)
- # print(name)
- # print(colors)
- # print(colors[2])
- # print(colors[-1])
- # for x in colors:
- # print(x)
- # for x in "colors":
- # print(x)
- # s = 0
- # for m in marks:
- # s += m # s = s + m
- # print(s)
- colors = ["red", "green", "blue"]
- from turtle import *
- tom = Turtle()
- tom.speed(8)
- tom.pensize(4)
- # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
- for x in range(10):
- tom.color(colors[x%3])
- tom.circle(x*10+10)
- done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement