PASO 8: Acabamos de imprimir el valor de nuestra primera variable booleana. ¡Probemos que es realmente un valor booleano!

Al usar type() , normalmente verá el tipo de datos en forma abreviada. Por ejemplo, bool , str e int .

  • Arrastra Print Type a la siguiente línea y edítalo para que genere claramente el tipo de condition_1a .
  • Hacer clic Ejecute , ingrese un número y examine la salida. ¿Cuál es la salida para el type( condition_1a ) ?
  • ¿Es el tipo de condition_1a alguna vez diferente según su entrada?

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)