Love coding ❤️❤️ Create Infinity symbol using python
Let's Start
Video Tutorial
You can visit our YouTube channel 'Mr. Code Box' and watch the video tutorial.
Source Code
import turtle
screen = turtle.Screen()
screen.setup(550, 600, startx=0, starty=100)
t = turtle.Turtle()
turtle.bgcolor('black')
turtle.color('yellow')
turtle.speed(11)
turtle.right (45)
for i in range(150):
turtle.circle(25)
if 7 < i < 62:
turtle. left(5)
if 80 < i < 133:
turtle.right(5)
if i < 80:
turtle.forward(10)
else:
turtle.forward(5)
Post a Comment