Post

@Python_Dv ✅ sum(numbers) → 6
❌ sum(Numbers) → NameError
The variable is "numbers" not "Numbers"
Python doesn't care about your feelings, only your capitalization
Another developer humbled by case sensitivity 💀
English

@Python_Dv The variable Numbers is not defined in the second exemple.
English

@Python_Dv The difference lies in Python’s case sensitivity. Using Numbers instead of numbers causes a NameError because variable names must match exactly, including letter case.
OUTPUT: 6
English

@Python_Dv you don't need to know python to solve this. it's like "what's the difference between these two pictures" type of puzzle :) it would be a python question if there weren't a check and cross sign asking which one gives error :)
English

@Python_Dv The variable "numbers" is not the same with the variable "Numbers" that will cause an error "Name error". Python is case sensitive for that reason the variable "Numbers" that leads to an error.
English

@Python_Dv Number variable not defined number is correct
English

@Python_Dv El nombre del array numbers debe respetarse dentro de Sum en minúscula
Español

@Python_Dv Top one prints 6.
Bottom one throws NameError: name 'Numbers' is not defined — Python is case-sensitive, so numbers and Numbers are different variables.
English

@Python_Dv numbers!=Numbers
Python is case sensitive.
Output:6
English








