<jupyter_start><jupyter_text>Turtle projectsTop one is main project-  color gram package - for color extraction<jupyter_code>from turtle import Turtle, Screen
import turtle as t
import random
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")
baby_turtle.speed(50)
# baby_turtle.pensize(5)
baby_turtle.penup()
t.colormode(255)

baby_turtle.setheading(225)
baby_turtle.forward(150)
baby_turtle.setheading(0)

# color_list = ["red", "orange", "yellow", "green", "blue", "purple", "pink",'black']
def random_color():
    r = random.randint(0,255)
    g = random.randint(0,255)
    b = random.randint(0,255)
    colored = (r,g,b)
    return colored

for dots in range(1,101):
    baby_turtle.dot(20,random_color())
    baby_turtle.forward(50)

    if dots % 10 == 0:
        baby_turtle.setheading(90)
        baby_turtle.forward(50)
        baby_turtle.setheading(180)
        baby_turtle.forward(500)
        baby_turtle.setheading(0)
    
    

#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("white")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()
from turtle import Turtle, Screen
# Turtle is a class that is used to draw shapes
# turtle module
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")


# Create a screen and click on it to exit
small_screen = Screen()
small_screen.bgcolor("lightgreen")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()
# Drawing a square with a turtle
from turtle import Turtle, Screen
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")

baby_turtle.forward(100)
baby_turtle.left(90)
baby_turtle.forward(100)
baby_turtle.left(90)
baby_turtle.forward(100)
baby_turtle.left(90)
baby_turtle.forward(100)
#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("lightgreen")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()<jupyter_output><empty_output><jupyter_text>- import modules should be with specific in mind1. from turtle import * , imports all but usage becomes clumsy like forward(10), readable decreases2. from turtle import Turtle(), best way where other users can read it clearly3. import turtle, best when on time use case  Highway<jupyter_code>from turtle import Turtle, Screen
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")
# dash lane😅
for i in range(50):
    baby_turtle.forward(10)
    baby_turtle.penup()
    baby_turtle.forward(10)
    baby_turtle.pendown()

#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("lightgreen")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()<jupyter_output><empty_output><jupyter_text>Shapes<jupyter_code>from turtle import Turtle, Screen
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")
color_list = ["red", "orange", "yellow", "green", "blue", "purple", "pink",'black']
# shapes 😅
for i in range(3,10):
    baby_turtle.color(color_list[i-3])
    for j in range(i):
        ang = 360/i
        baby_turtle.forward(100)
        baby_turtle.left(ang)
    

#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("white")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()
from turtle import Turtle, Screen
import random
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")
color_list = ["red", "orange", "yellow", "green", "blue", "purple", "pink",'black']
# shapes 😅
for i in range(3,10):
    baby_turtle.color(random.choice(color_list))
    for j in range(i):
        ang = 360/i
        baby_turtle.forward(100)
        baby_turtle.left(ang)
    

#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("white")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()<jupyter_output><empty_output><jupyter_text>Random walker<jupyter_code>from turtle import Turtle, Screen
import random
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")
baby_turtle.speed(2)
baby_turtle.pensize(5)

color_list = ["red", "orange", "yellow", "green", "blue", "purple", "pink",'black']
direction_list = [0,90,180,270]
# random walker 😅
for i in range(100):
    baby_turtle.color(random.choice(color_list))
    baby_turtle.forward(20)
    baby_turtle.setheading(random.choice(direction_list))
    
    

#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("white")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()
from turtle import Turtle, Screen
import turtle as t
import random
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")
baby_turtle.speed(2)
baby_turtle.pensize(5)
t.colormode(255)

# color_list = ["red", "orange", "yellow", "green", "blue", "purple", "pink",'black']
def random_color():
    r = random.randint(0,255)
    g = random.randint(0,255)
    b = random.randint(0,255)
    colored = (r,g,b)
    return colored

direction_list = [0,90,180,270]
# random walker 😅
for i in range(100):
    baby_turtle.color(random_color())
    baby_turtle.forward(20)
    baby_turtle.setheading(random.choice(direction_list))
    
    

#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("white")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()
from turtle import Turtle, Screen
import turtle as t
import random
baby_turtle = Turtle()
baby_turtle.shape("turtle")
baby_turtle.color("purple")
baby_turtle.speed(50)
# baby_turtle.pensize(5)
t.colormode(255)

# color_list = ["red", "orange", "yellow", "green", "blue", "purple", "pink",'black']
def random_color():
    r = random.randint(0,255)
    g = random.randint(0,255)
    b = random.randint(0,255)
    colored = (r,g,b)
    return colored

direction_list = [0,90,180,270]
# random walker 😅
for i in range(150):
    baby_turtle.color(random_color())
    baby_turtle.circle(100)
    baby_turtle.setheading(baby_turtle.heading()+5) #turtle.heading()
    
    

#screen for drawing a square
small_screen = Screen()
small_screen.bgcolor("white")
small_screen.title("A Turtle's Journey")
small_screen.exitonclick()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13147668393782383, 'fraction_numerical': 0.02849740932642487, 'mean_word_length': 5.434375, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '150561', 'license': 'MIT', 'n_tokens_mistral': 2505, 'n_tokens_neox': 2246, 'n_words': 483, 'path': 'Jayaprakash/Day_1/dot_paint.ipynb', 'repo_name': 'Jayjake1/100-Days-of-Code', 'size': '6176'}