From 18ef09f8c05231965408dd15fb43947b087c3cac Mon Sep 17 00:00:00 2001 From: Pasha Date: Wed, 11 Mar 2026 23:19:32 +0000 Subject: [PATCH] Batch 1 --- Cubs.py | 100 +++++++++++++++++++++++++++++++++++++++++++++ GuessMyPassword.py | 25 ++++++++++++ exotic flower.py | 34 +++++++++++++++ homework.py | 46 +++++++++++++++++++++ house.py | 37 +++++++++++++++++ 5 files changed, 242 insertions(+) create mode 100644 Cubs.py create mode 100644 GuessMyPassword.py create mode 100644 exotic flower.py create mode 100644 homework.py create mode 100644 house.py diff --git a/Cubs.py b/Cubs.py new file mode 100644 index 0000000..5a4707f --- /dev/null +++ b/Cubs.py @@ -0,0 +1,100 @@ +import turtle +t = turtle +t.color("red") +t.fillcolor("red") +t.speed(111111111111111111111111111111111111111111111111111111111111111111111111111111) +k=0 +while k < 8: + t.begin_fill() + t.circle(350, steps = 4) + t.end_fill() + t.lt(45) + k=k+1 + + +t.color("orange") +t.fillcolor("orange") +k=0 +while k < 8: + t.begin_fill() + t.circle(300, steps = 4) + t.end_fill() + t.lt(45) + k=k+1 + + +t.color("yellow") +t.fillcolor("yellow") +k=0 +while k < 8: + t.begin_fill() + t.circle(250 , steps = 4) + t.end_fill() + t.lt(45) + k=k+1 + + +t.color("green") +t.fillcolor("green") +k=0 +while k < 8: + t.begin_fill() + t.circle(200 , steps = 4) + t.end_fill() + t.lt(45) + k=k+1 + + +t.color("blue") +t.fillcolor("blue") +k=0 +while k < 8: + t.begin_fill() + t.circle(150 , steps = 4) + t.end_fill() + t.lt(45) + k=k+1 + + +t.color("indigo") +t.fillcolor("indigo") +k=0 +while k < 8: + t.begin_fill() + t.circle(100 , steps = 4) + t.end_fill() + t.lt(45) + k=k+1 + + +t.color("violet") +t.fillcolor("violet") +k=0 +while k < 8: + t.begin_fill() + t.circle(50 , steps = 4) + t.end_fill() + t.lt(45) + k=k+1 + + + + + + + + + + + + + + + + + + + + + + diff --git a/GuessMyPassword.py b/GuessMyPassword.py new file mode 100644 index 0000000..ba487c4 --- /dev/null +++ b/GuessMyPassword.py @@ -0,0 +1,25 @@ +# module + +import random + +# variables + +response1 = "hello" +response2 = "correct" +response3 = "are you james bond (its wrong)" +response4 = "i love pizza" +response5 = "nice to meat you" +response6 = "mind blank" +response7 = "shutting down" +MY_PASSWORD = "MY PASSWORD" + +# function defenition + +def is_correct(guess,password): + if guess == pasword: + guess_correct = True + else: + guess_correct = False + return guess_correct + + diff --git a/exotic flower.py b/exotic flower.py new file mode 100644 index 0000000..4712dc0 --- /dev/null +++ b/exotic flower.py @@ -0,0 +1,34 @@ +import turtle +t = turtle +t.bgcolor("black") +t.speed (59999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) +t.color ("red") +q=0 +while q < 16: + t.circle(100) + t.left(22.5) + q=q+1 + + +t.color("orange") +t.left(11.25) +p=0 +while p < 16: + t.circle(50) + t.left(22.5) + p=p+1 + + + +t.left(5.625) +r=0 +t.color("yellow") +while r < 16: + t.circle(25) + t.left(22.5) + r=r+1 + + + + + diff --git a/homework.py b/homework.py new file mode 100644 index 0000000..2e2e4a4 --- /dev/null +++ b/homework.py @@ -0,0 +1,46 @@ +import turtle +t = turtle +t.color("red") +t.fillcolor("red") +t.bgcolor("black") +t.shape("turtle") +t.speed (57) +t.lt(90) +t.begin_fill() +t.circle(300) +t.end_fill() +t.lt(90) +t.fd(250) +t.color("crimson") +t.begin_fill() +t.circle(50,67) +t.rt(27) +t.circle(34,23) +t.rt(63) +t.circle(56,12) +t.rt(90) +t.circle(76,56) +t.end_fill() +t.penup() +t.fd(90) +t.pendown() +t.begin_fill() +t.circle(78,36) +t.end_fill() +t.rt(180) +p = 0 +while p < 12: + t.fd(9) + t.rt(9) + t.penup() + t.fd(2) + t.pendown() + t.fd(1) + t.lt(1) + p=p+1 + + +t.penup() +t.fd (34) +t.pendown() +t.circle diff --git a/house.py b/house.py new file mode 100644 index 0000000..301d6f5 --- /dev/null +++ b/house.py @@ -0,0 +1,37 @@ +import turtle +t = turtle +t.pensize("8") +t.color("pink") +t.shape("turtle") +t.penup() +t.right(135) +t.fd(50) + +t.pendown() +t.circle(200 , steps = 4 ) +t.rt(45) +t.color("blue") +t.fd(25) +t.rt(120) +t.fd(325) +t.rt(120) +t.fd(325) +t.right(120) +t.fd(150) +t.penup() +t.lt(90) +t.fd(25) +t.color("green") +t.fd(100) +t.pendown() +t.rt(90) +t.fd(50) +t.lt(90) +t.fd(150) +t.lt(90) +t.fd(100) +t.lt(90) +t.fd(150) +t.lt(90) +t.fd(50) +