generated from mwc/lab_iteration
	I wrote an explanation for a function using a docstring.
I will write docstrings if I write my own programs in the future so other people, or myself, can understand what the function does if they look at the code in the future.
This commit is contained in:
		@@ -10,7 +10,10 @@ from tile import fly
 | 
				
			|||||||
def draw_tile_grid(width, height, tile_size, tile_function):
 | 
					def draw_tile_grid(width, height, tile_size, tile_function):
 | 
				
			||||||
    """Draws a (width x height) grid, with tile_function drawn on each tile.
 | 
					    """Draws a (width x height) grid, with tile_function drawn on each tile.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    (Your explanation here.)
 | 
					    After the user inputs the width, draw tiles to the right x times
 | 
				
			||||||
 | 
					    After the user inputs the height, draw tiles vertically y times
 | 
				
			||||||
 | 
					    After the user inputs the tile size, side length of tiles is tile_size
 | 
				
			||||||
 | 
					    Tile_function makes the turtle draw a specified pattern
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    for y in range(height):
 | 
					    for y in range(height):
 | 
				
			||||||
        for x in range(width):
 | 
					        for x in range(width):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user