PASO 4: ¡Ahora podemos usar el valor que obtuvimos con el índice para establecer nuestro fondo!

  • En GRÁFICOS, vaya a y suelte Set Background en la parte inferior de su código.
  • Cambia el argumento en .set_background() de "city" a stage_image .
  • Hacer clic Corre para ver el conjunto de fondo. ¿A qué imagen está configurado el fondo?

¡Recuerde, un argumento es información que necesita un comando para ejecutarse!

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

######################################################################## # PLACE LIST CREATIONS HERE # ######################################################################## stage_list = ["moon", "mars", "jupiter", "pluto", "space", "city"] ######################################################################## # PLACE ALL OTHER CODE BELOW THIS # ######################################################################## stage_image = stage_list[0]
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)