PASO 7: Su programa usa una regla de función para crear un valor de y para cada valor de x que pasa al ciclo.

Podemos usar un .append() para agregar valores a nuestra lista de outputs vacía.

  • Seleccione la pestaña LÓGICA en el kit de herramientas y haga clic en .
  • Arrastre Append . Déjalo DENTRO de tu bucle.
  • Cambie el nombre delante del comando a outputs . Cambie la variable entre paréntesis a y .

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)