generated from mwc/lab_iteration
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			219 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			219 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from turtle import *
 | 
						|
 | 
						|
def square(side_length):
 | 
						|
    for i in range(4):
 | 
						|
        forward(side_length)
 | 
						|
        right(90)
 | 
						|
 | 
						|
sizes = [20, 40, 60, 80, 100]
 | 
						|
for size in sizes:
 | 
						|
   square(20)
 | 
						|
   penup()
 | 
						|
   forward(40)
 | 
						|
   pendown() |