Please enable JavaScript to use CodeHS

Utah Introducción a Python 1 y 2

Lesson 5.2 Tipos de datos

Description

En esta lección, los alumnos aprenden 4 tipos de datos diferentes y qué tipo de información contienen. También aprenden a utilizar la función tipo para determinar el tipo de datos de un valor y a utilizar la fundición para cambiar valores entre distintos tipos de datos.


Objective

Students will be able to:

  • Categorize values into different data types (string, integer, floating point number, and boolean)
  • Use the type function to check the type of any value
  • Use str, int, and float to cast values to different data types