generated from mwc/lab_names
	I got to finishing triangle
This commit is contained in:
		
							
								
								
									
										13
									
								
								shapes.py
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								shapes.py
									
									
									
									
									
								
							@@ -1,11 +1,20 @@
 | 
				
			|||||||
# shapes.py
 | 
					    # shapes.py
 | 
				
			||||||
# ---------
 | 
					# ---------
 | 
				
			||||||
# By MWC contributors
 | 
					# By MWC contributors
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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
 | 
					    pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user