0% found this document useful (0 votes)
24 views2 pages

Com

The document discusses the Turtle and Tkinter modules in Python. The Turtle module provides a simple way to create graphics using a virtual turtle and includes functions like forward, backward, right, left, penup, pendown, goto, hideturtle and done. The Tkinter module is a standard GUI toolkit for Python that provides functions to create graphical user interfaces.

Uploaded by

maisamakbari345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Com

The document discusses the Turtle and Tkinter modules in Python. The Turtle module provides a simple way to create graphics using a virtual turtle and includes functions like forward, backward, right, left, penup, pendown, goto, hideturtle and done. The Tkinter module is a standard GUI toolkit for Python that provides functions to create graphical user interfaces.

Uploaded by

maisamakbari345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

### Turtle Module:

The Turtle module in Python provides a simple way to create graphics using a virtual turtle. It is part of
the standard Python library and is commonly used for educational purposes, teaching programming
concepts, and creating simple graphical applications.

### Tkinter Module

The Tkinter module is a standard GUI toolkit for Python. It provides a set of functions to create graphical
user interfaces (GUI) in Python applications. Tkinter is based on the Tk GUI toolkit, which is used with
the Tcl programming language.

### Functions of Turtle Module

1. `turtle.forward(distance)`: Moves the turtle forward by a specified distance.

2. `turtle.backward(distance)`: Moves the turtle backward by a specified distance.

3. `turtle.right(angle)`: Rotates the turtle to the right by a specified angle

4. `turtle.left(angle)`: Rotates the turtle to the left by a specified angle

5. `turtle.penup()`: Lifts the pen off the canvas, so the turtle can move without drawing

6. `turtle.pendown()`: Puts the pen back on the canvas, so the turtle can start drawing again

7. `turtle.goto(x, y)`: Moves the turtle to the specified coordinates (x, y) without drawing

8. `turtle.hideturtle()`: Makes the turtle cursor invisible on the screen


9. `turtle.done()`: Keeps the window open and displays the graphics until manually closed

These functions are commonly used when working with the Turtle module to create drawings and
graphics in Python

You might also like