История заставок Контрольная закупка (2006-н.в.)

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Уже не в наше время, программа выходила до 2018 года

jdkccwc
Автор

speed(0)

radius = 25

penup()
row_value=0






def move_to_row(num_blocks):
x_value = -((num_blocks*50)/2)+radius
y_value = -200+(50*row_value)
setposition(x_value, y_value)


def draw_block_row(num_blocks):

for i in range(num_blocks):

pendown()

circle(radius)

penup()
forward(50)

num_blocks=int(input("How many blocks on the bottom row? (8 or less): "))
for i in range(num_blocks):
move_to_row(num_blocks)
row_value=row_value+1
draw_block_row(num_blocks)
num_blocks=num_blocks-1

guiynkv
Автор

def draw_circle(radius, color_choice):
pendown()
color(color_choice)
begin_fill()
circle(radius)
end_fill()
penup()
def smile():
setposition(-60, 0)
pendown()
right(90)
pensize(10)
circle(60, 180)
penup()
setposition(0, -100)
draw_circle(100, "yellow")
setposition(30, 30)
draw_circle(10, "black")
setposition(-30, 30)
draw_circle(10, "black")
happy = input("What is your mood today?:")
if happy == "happy":
smile()

guiynkv
Автор

length = int(input("what is the length?:"))
width = input("what is the width?:")
width = int(width)

area = length * width
perimetr = 2 * length + 2 * width

print("area: " + str(area))
print("perimetr: " + str(perimetr))

aidardaribai
Автор

speed(0)
pensize(5)
penup()
setposition(-100, 0)
pendown()
for i in range(4):
color("green")
left(45)
forward(50)
color("blue")
right(90)
forward(50)
color("red")
left(45)
backward(50)
right(90)
forward(50)

aidardaribai
Автор

speed(0)
def draw_square():
pendown()
for i in range (4):
forward(50)
left(90)
penup()
left(90)
forward(50)
right(90)
forward(25)
def draw_circle():
pendown()
circle(25)
penup()
backward(25)
left(90)
forward(50)
right(90)
penup()
setposition (-25, -200)
for i in range (4):
draw_square()
draw_circle()

aidardaribai
Автор

def draw_square():
pendown()
for i in range(4):
forward(length)
left(90)
penup()
speed(5)
penup()
length=50

while(length <= 350):
setposition(-length /2, -length /2)
draw_square()
length = length + 50

guiynkv
Автор

speed(0)
penup()
setposition(-100, 0)
count=0
def make_squares(i):
if i % 2 == 0:
begin_fill()
for i in range(4):
forward(25);
left(90)
end_fill()
penup()
pendown()
for i in range(6):
pendown()
make_squares(i)
penup()
forward(35)

guiynkv
Автор

length=10
width=5
area= (width*length)
print("Area="+str(area))
perimeter=((length+width)*2)

3.5.7

ugmknyk
Автор

def set_position():
penup()
setposition(-100, 75)
pendown()


#make diamond
penup()
setposition(-100, 75)
pendown()
begin_fill()
color("red")
circle(60, 360, 4)
end_fill()

#make circle
penup()
setposition(100, 75)
pendown()
begin_fill()
color("blue")
circle(60)
end_fill()

#make pentagon
penup()
setposition(100, -75)
pendown()
begin_fill()
color("green")
circle(60, 360, 5)
end_fill()

#make half cirlce
penup()
setposition(-100, -75)
pendown()
begin_fill()
color("yellow")
circle(60, 180)
end_fill()

aidardaribai
Автор

speed(10)
#Set variable radius = 100
radius=100
def draw_circle():
color_choice = input("what color should this circle be?:")
pendown()
color(color_choice)
begin_fill()
circle(radius)
penup()
end_fill()
left(90)
forward(25)
right(90)
penup()
setposition(0, -100)
for i in range(4):
draw_circle()
radius = radius -25

guiynkv
Автор

speed(0)

penup()

setposition(-200, -200)

def square():
for i in range (8):
pendown()
right(45)
circle(35, 360, 4)
left(45)
forward(50)
penup()

setposition(-200, -200)

for i in range(4):
square()
left(90)

guiynkv
Автор

speed(0)
def draw_circle_and_go_back():
penup()
forward(100)
pendown()
circle(10)
penup()
backward(100)
left(10)

for i in range(36):
draw_circle_and_go_back()

aidardaribai
Автор

speed(5)

def draw_x():
color("red")
right(45)
pensize(10)
forward(50)
backward(50)
right(90)
for i in range(3):
forward(50)
backward(50)
right(90)

def draw_minus():
pensize(10)
color("black")
setposition(-200, 0)
pendown()
forward(400)
def draw_checkmark():
pensize(10)
color("green")
right(45)
forward(58)
left(100)
forward(100)

rating = int(input("1-10 "))

if rating<= 4:
draw_x()
elif rating<=7:
draw_minus()
else:
draw_checkmark()

guiynkv
Автор

"""
This program will draw four circles in a square formation at the center of the
canvas. Each circle will have a radius of 50.
"""
penup()
right(90)
forward(200)
right(90)
forward(100)
right(180)
# Draw three circles next to each other
for i in range(3):
pendown()
circle(50)
forward(100)

penup()
setposition(-50, -100)
# Draw two circles next to each other
for i in range(2):
pendown()
circle(50)
forward(100)
penup()
setposition(-10, 20)
pendown()
circle(50)

aidardaribai
Автор

speed(5)
for i in range(10, 51, 10):
forward(10)
left(90)
forward(i)
left(90)
forward(10)
left(90)
forward(i)
left(90)
penup()
forward(25)
pendown()

guiynkv
Автор

speed(0)

def make_bread():
penup()
forward(100)
pendown()
begin_fill()
circle(10)
end_fill()
penup()
backward(100)

for i in range(12):
color("blue")
make_bread()
left(10)
color("red")
make_bread()
left(10)
color("purple")
make_bread()
left(10)

aidardaribai
Автор

fck
Короче, мой старый канал. Я не умел снимать видео на экране, ибо я не знал, что такое Bandicam. Даже монтировать не умел - всё через камеру моего старого смартфона (который уже давно сломан). Сейчас монтирую в основном в Camtasia Studio (у него есть встроенная запись экрана, что очень удобно даже если нет Бандикама), иногда - в Sony Vegas (или просто VEGAS).

YerassylKhairolla
Автор

"""
This code will fill the canvas with light blue circles.
"""
speed(0)

# This function will draw a row of 10 circles.
def draw_circle_row():
for i in range(10):
pendown()
begin_fill()
color("light blue")
circle(20)
end_fill()
penup()
forward(40)

def move_up_a_row():
left(90)
forward(40)
right(90)
backward(400)

# Send Tracy to starting position in bottom left corner.
penup()
setposition(-180, -200)

# Call circle drawing function
for i in range(10):
draw_circle_row()
move_up_a_row()

guiynkv
Автор

"""
my
full
name

"""
#There we ask his full name

first_name = input("Enter your first name: ")
middle_name = input("Enter your middle name: ")
last_name = input("Enter your last name: ")


full_name = first_name + " " + middle_name + " " + last_name
print(full_name)
3.6.5

ugmknyk