0% found this document useful (0 votes)
19 views

Untitled2.ipynb - Colab

The document details the installation and usage of the ColabTurtle library in Google Colab. It includes several code snippets demonstrating how to initialize the turtle, change colors, and execute various movements to create shapes. The document serves as a practical guide for users to create turtle graphics using Python in a Colab environment.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Untitled2.ipynb - Colab

The document details the installation and usage of the ColabTurtle library in Google Colab. It includes several code snippets demonstrating how to initialize the turtle, change colors, and execute various movements to create shapes. The document serves as a practical guide for users to create turtle graphics using Python in a Colab environment.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

23/01/2025, 18:39 Untitled2.

ipynb - Colab

Pip install colabturtle

pip install ColabTurtle

Collecting ColabTurtle
Downloading ColabTurtle-2.1.0.tar.gz (6.8 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: ColabTurtle
Building wheel for ColabTurtle (setup.py) ... done
Created wheel for ColabTurtle: filename=ColabTurtle-2.1.0-py3-none-any.whl size=7642 sha256=9b1c39a62d61b8126af6d191eb0b709abf2aa5
Stored in directory: /root/.cache/pip/wheels/5b/86/e8/54f5c8c853606e3a3060bb2e60363cbed632374a12e0f33ffc
Successfully built ColabTurtle
Installing collected packages: ColabTurtle
Successfully installed ColabTurtle-2.1.0

import ColabTurtle.Turtle as lia


lia.initializeTurtle(initial_speed=5)
lia.color('blue')
lia.forward(100)
lia.right(45)
lia.color('red')
lia.forward(50)
lia.right(90)
lia.forward(50)
lia.right(45)
lia.color('blue')
lia.forward(100)
lia.right(90)
lia.color('red')
lia.forward(50)

import ColabTurtle.Turtle as lia


lia.initializeTurtle(initial_speed=5)
lia.color('yellow')

lia.forward(50)
lia.right(90)
lia.forward(100)
lia.right(90)
lia.forward(50)
lia.right(90)
lia.forward(100)

https://colab.research.google.com/drive/1Rq-6EzJTofnbhyS-_E-hqI6o64caniKM 1/3
23/01/2025, 18:39 Untitled2.ipynb - Colab

import ColabTurtle.Turtle as lia


lia.initializeTurtle(initial_speed=5)
lia.color('green')
lia.right(30)
lia.forward(100)
lia.right(120)
lia.forward(100)
lia.right(90)

import ColabTurtle.Turtle as lia


lia.initializeTurtle(initial_speed=5)
lia.left(45)
lia.color('blue')
lia.forward(100)
lia.left(90)
lia.forward(50)
lia.right(135)
lia.forward(80)
lia.right(110)
lia.forward(80)
lia.right(135)

https://colab.research.google.com/drive/1Rq-6EzJTofnbhyS-_E-hqI6o64caniKM 2/3
23/01/2025, 18:39 Untitled2.ipynb - Colab
lia.forward(45)
lia.left(110)
lia.forward(100)
lia.left(120)
lia.is_pen_down

True

https://colab.research.google.com/drive/1Rq-6EzJTofnbhyS-_E-hqI6o64caniKM 3/3

You might also like