CODEZEROINTERACTIVE

Chapter 2 / 12

2.14 ¿Python distingue mayúsculas y minúsculas?

Qué es Python, cómo se ejecuta el código y por qué es una buena puerta de entrada a la programación.

Lesson 154%

15 / 32 lessons in this chapter

Current chapter

Chapter 2 — ¿Qué es Python?

Self-paced

2.14 ¿Python distingue mayúsculas y minúsculas?

Sí.

Python distingue entre letras mayúsculas y minúsculas.

Esto significa que:

python terminal
print

no es lo mismo que:

python terminal
Print

Este código funciona:

python terminal
print("Hola")

Este código no funciona:

python terminal
Print("Hola")

También sucede con los nombres que creemos más adelante.

Por ejemplo:

python terminal
nombre
Nombre
NOMBRE

Python considera que son tres nombres diferentes.

Para evitar confusión, normalmente escribiremos nombres de variables y funciones utilizando minúsculas.