generated from mwc/lab_names
check point 2
This commit is contained in:
15
shapes.py
15
shapes.py
@@ -5,7 +5,18 @@
|
|||||||
from turtle import *
|
from turtle import *
|
||||||
|
|
||||||
def triangle(side_length):
|
def triangle(side_length):
|
||||||
pass
|
forward(side_length)
|
||||||
|
right(120)
|
||||||
|
forward(side_length)
|
||||||
|
right(120)
|
||||||
|
forward(side_length)
|
||||||
|
right(120)
|
||||||
|
|
||||||
def rectangle(height, width):
|
def rectangle(height, width):
|
||||||
pass
|
forward(height)
|
||||||
|
right(90)
|
||||||
|
forward(width)
|
||||||
|
right(90)
|
||||||
|
forward(height)
|
||||||
|
right(90)
|
||||||
|
forward(width)
|
||||||
|
|||||||
Reference in New Issue
Block a user