PASO 7: Recopilemos el resultado de cada tirada y almacenémoslo en una lista.

El .append() nos permite agregar un nuevo elemento a una lista existente.

  • En LÓGICA, haga clic en . Arrastre Append DENTRO de su ciclo.
  • Cambie el nombre delante del comando de my_list a rolls .
  • Cambie el argumento de my_var a outcome .

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)