main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# a = 0          # initial value
# limit = 10     # limit
# while a < limit:# <-- condition
#     print("It is less!")
#     a += 1     # increment a = a+1
# print(a)

# x = int(input("x start"))
# limit = int(input("x end"))
# import turtle
# turtle.speed(0)
# turtle.penup()
# print(" x | y")
# print("---+---")
# while x < limit:
#     y = 1/50.0 * x * x + 2 * x - 10
#     #print(str(x)+" | "+str(y))
#     print("%3d|%3d" % (x, y))
#     turtle.goto(x,y)
#     turtle.pendown()
#     x += 1

import turtle
turtle.speed(0)
x = 0
size = 300
increment = 15
while x < size:
    turtle.penup()
    turtle.goto(0,size-x)
    turtle.pendown()
    turtle.goto(x,0)
    x += increment
result
console