Python Turtle - Code a Rectangle Tutorial

Published: 08 June 2020
on channel: Geek Tutorials
31,607
176

Learn how to quickly draw a rectangle using Python's Turtle module.

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_me...

~ CODE ~

from turtle import *

fillcolor("red")
begin_fill()

for i in range(2):
forward(300)
right(90)
forward(150)
right(90)

end_fill()
hideturtle()


On this page of the site you can watch the video online Python Turtle - Code a Rectangle Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Geek Tutorials 08 June 2020, share the link with friends and acquaintances, this video has already been watched 31,607 times on youtube and it was liked by 176 viewers. Enjoy your viewing!