generated from mwc/lab_names
	it is undefined and is determined by you.functions can be anything you want it to be and can be as complicated as you want it to be.
		
			
				
	
	
		
			30 lines
		
	
	
		
			406 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			406 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# shapes.py
 | 
						|
# ---------
 | 
						|
# By MWC contributors
 | 
						|
 | 
						|
from turtle import *
 | 
						|
 | 
						|
def triangle(side_length):
 | 
						|
    forward(side_length)
 | 
						|
    right(120)
 | 
						|
    forward(side_length)
 | 
						|
    right(120)
 | 
						|
    forward(side_length)
 | 
						|
    right(120)
 | 
						|
    
 | 
						|
def rectangle(height, width):
 | 
						|
    forward(width) 
 | 
						|
    right(90)
 | 
						|
    forward(height)
 | 
						|
    right(90)
 | 
						|
    forward(width)
 | 
						|
    right(90)
 | 
						|
    forward(height)
 | 
						|
    right(90)
 | 
						|
  
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    
 | 
						|
    
 | 
						|
     |