Batch 1
This commit is contained in:
100
Cubs.py
Normal file
100
Cubs.py
Normal file
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
25
GuessMyPassword.py
Normal file
25
GuessMyPassword.py
Normal file
@@ -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
|
||||
|
||||
|
||||
34
exotic flower.py
Normal file
34
exotic flower.py
Normal file
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
46
homework.py
Normal file
46
homework.py
Normal file
@@ -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
|
||||
37
house.py
Normal file
37
house.py
Normal file
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user