ALL ABOUT PYTHON TURTLE LIBRARY
turtle
is a pre-installed Python library that enables users to create pictures and shapes by providing them with a virtual canvas. The onscreen pen that you use for drawing is called the turtle and this is what gives the library its name. In short, the Python turtle
library helps new programmers get a feel for what programming with Python is like in a fun and interactive way.
turtle
is mainly used to introduce children to the world of computers. It’s a straightforward yet versatile way to understand the concepts of Python. This makes it a great avenue for KIDS to take their first steps in Python programming. That being said, the Python turtle
library is not restricted to little ones alone! It’s also proved extremely useful for adults who are trying their hands at Python, which makes it great for Python beginners.
With the Python turtle
library, you can draw and create various types of shapes and images. Here’s a sample of the kinds of drawings you can make with turtle
:
IN THIS VIDEO WE ARE GOING TO LEARN :
- Understand what the Python
turtle
library is - Learn how to set
turtle
up on your computer
Getting Started With turtle
Before you continue, there are two important things that you’ll need to do to make the most of this tutorial:
Python Environment: Make sure that you’re familiar with your programming environment. You can use applications like IDLE or Jupyter Notebook to program with
turtle
. However, if you’re not comfortable with them, then you can program with the REPL, which you’ll use in this tutorial.Python Version: Ensure that you have version 3 of Python on your computer. If not, then you can download it from the Python website. For help setting things up, check out Python 3 Installation & Setup Guide.
The good thing about turtle
is that it’s a built-in library, so you don’t need to install any new packages. All you need to do is import the library into your Python environment, which in this case would be the REPL. Once you open your REPL application, you can run Python 3 on it by typing the following line of code:
Comments
Post a Comment