PASO 3: ¡Creemos una función que calcule cuánto pesarían el T-rex y el gatito en la luna!

Un float es un número con un punto decimal. Los flotantes son un tipo de datos que se usa en Python, como enteros o cadenas.

  • Vaya a LÓGICA y luego y arrastre Define Function with Parameters .
  • Cambie el nombre de la función a get_moon_weight .
  • Ir a y arrastre Float Variable dentro de la función. Debe tener un ···· delante de él.

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)