generated from mwc/lab_names
not close
This commit is contained in:
10
drawings.py
Normal file
10
drawings.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
from turtle import forward, right
|
||||
forward(100)
|
||||
right(90)
|
||||
forward(100)
|
||||
right(90)
|
||||
forward(100)
|
||||
right(90)
|
||||
forward(100)
|
||||
right(90)
|
||||
20
shapes.py
20
shapes.py
@@ -5,7 +5,23 @@
|
||||
from turtle import *
|
||||
|
||||
def triangle(side_length):
|
||||
pass
|
||||
forward(side_length)
|
||||
right(120)
|
||||
forward(side_length)
|
||||
right(120)
|
||||
forward(side_length)
|
||||
|
||||
def rectangle(height, width):
|
||||
pass
|
||||
forward(width)
|
||||
right(90)
|
||||
forward(height)
|
||||
right(90)
|
||||
forward(width)
|
||||
right(90)
|
||||
forward(height)
|
||||
right(90)
|
||||
|
||||
|
||||
|
||||
triangle(100)
|
||||
rectangle(50,100)
|
||||
Reference in New Issue
Block a user