Dux-Courses Evaluaciones
DOCUMENTATIONCOURSESROADMAPRANKINGBLOGPLAYGROUND
LoginSign Up
Aurum-Courses

Aurum Courses is an advanced learning and evaluation platform designed to accelerate your tech career. We provide an immersive environment filled with challenges, technical documentation, and verifyable certificates for frontend, backend, and fullstack technologies.

Platform Links

  • Interactive Courses
  • Technical Documentation
  • Tech Blog & Articles
  • Mi Perfil y Progreso

About the Project

  • About the Project
  • Contact & Support

Legal & Compliance

  • Privacy Policy
  • Terms of Service
  • Cookies Management
© 2026 Aurum-Courses. All rights reserved. Made with passion for the developer ecosystem.

Desarrollado por Aurumdux

Docs/Python/Variables y Tipos Básicos
Principiantepython

Variables y Tipos Básicos

Aprende a guardar datos en la memoria de la computadora usando variables y tipos de datos en Python.

¿Qué es una variable?

Una variable es como una "caja" con una etiqueta donde guardas un dato. En Python, no necesitas declarar el tipo de dato, el lenguaje lo deduce automáticamente.

Tipos de datos comunes

Python maneja distintos tipos: str (texto, entre comillas), int (números enteros), float (números con decimales) y bool (Verdadero o Falso).
python
1nombre = "Ana"       # str (String/Texto)
2edad = 28            # int (Integer/Entero)
3altura = 1.65        # float (Decimal)
4es_estudiante = True # bool (Boolean: Nota que va con Mayúscula Inicial)
5
6print(f"Me llamo {nombre} y tengo {edad} años.")

F-Strings (Cadenas Formateadas)

Como viste en el ejemplo anterior, colocar una f antes de las comillas en un texto te permite inyectar variables directamente dentro usando llaves {variable}. Es la forma moderna y recomendada de crear textos en Python.
← Anterior¿Qué es Python?Siguiente →Operadores Matemáticos y Comparaciones