Post

Python Developer
Python Developer@PythonDvz·
What is The Difference ❓📢 Comment The Output
Python Developer tweet media
English
17
4
47
3.9K
Jenny
Jenny@JennyTheDev·
@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
0
0
6
108
Pedro
Pedro@LarotulePedro·
@Python_Dv The variable Numbers is not defined in the second exemple.
English
0
0
1
18
Tasawar Iqbal
Tasawar Iqbal@TasawarMQ·
@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
0
0
1
79
Hector
Hector@savallsicart·
@Python_Dv 1rst-->6 2nd --> Variable not defined
English
0
0
0
12
Umit
Umit@techie_qzz_io·
@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
0
0
0
37
webguru
webguru@arvinvlarde·
@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
0
0
0
10
Rotakit
Rotakit@PepeTarraga·
@Python_Dv El nombre del array numbers debe respetarse dentro de Sum en minúscula
Español
0
0
0
7
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@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
0
0
0
13
Paylaş