PASO 11: ¡Otra forma de agregar elementos a una lista es usar el comando agregar!

  • En LÓGICA, haga clic en y arrastra Append .
  • Suéltalo debajo .Display() pero antes del ciclo.
  • Cambie el nombre de la variable antes de .append() de my_list a pet_list .
  • Reemplace my_var en .append() con la cadena "kitten" .

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)