PASO 4 : Comencemos a hacer nuestro laberinto creando una nueva función.

  • Esta función necesitará un parámetro: una lista 2D con el mismo número de filas y columnas.
  • En , arrastre Define Function with Docstring arriba donde dice: MAIN FUNCTION .
  • Cambie el nombre de my_function a create_maze y escriba maze dentro de ( ) .
  • Finalmente, cambia tu docstring a lo siguiente: """ Creates the maze using square sprites """

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)