Is python code case sensitive

Python is case sensitive. Whether it is a variable, function, or class, it must be strictly case sensitive.

For example, page and Page are two different variables, and name and Name are also two completely different variables.

If you accidentally confuse the name of the variable, the program will report an error

For example, define a variable name ='Lucy', output this variable, but it is not case sensitive

name ='Lucy'print(Name)
NameError: name 'Name' is not defined

Therefore, in daily study or actual work, you must pay attention to case sensitivity and develop good coding habits.

Example supplement:

If it can distinguish between identifiers like myname and Myname, then it is case sensitive. In other words, it cares about uppercase and lowercase.

myname='Ayushi'print(Myname)Traceback(most recent call last):
File "E:/py3.6code/xx", line 6,in<module 
print(Myname)
NameError: name 'Myname' is not defined

So far, this article on whether python code is case sensitive is introduced. For more relevant python case sensitive content, please search for ZaLou.Cn's previous articles or continue to browse related articles below. I hope you will support ZaLou more in the future. Cn!

Recommended Posts

Is python code case sensitive
Python 3.9 is here!
Why python is popular
Python is short-crawling music
Python is slowly fading
Python SMS bombing code
Python code to find bugs (2)
Python code to find bugs(7)
How to comment python code
How Python converts string case
Python code to find bugs (3)
Python code to find bugs(9)
Is python an interpreted language?
Python drawing rose implementation code
Is python an interpreted language
Python numpy implements rolling case
Python is short-world epidemic map
Python regular expression example code
Python install OpenCV sample code
Python code to find bugs(6)
Minimalism is the soul of Python | Python code to find bugs (10)
Python code to find bugs (1)
Python code to find bugs(8)
Python implements verification code recognition
Python code to find bugs(5)
What is introspection in python
What is object-oriented in python
What is Python variable scope
Python telnet login function implementation code
python how to view webpage code
Python implementation of IOU calculation case
What is list comprehension in python
Is there function overloading in python
How to wrap in python code
Python judges that it is empty
Python ATM function implementation code example
What is the use of Python
Is python language free or paid?
Everything in Python is an object
Is python suitable for data mining
Gray-level co-occurrence matrix (with python code)
Python tcp transmission code example analysis
Is python crawler easy to learn
Python handles operation code to execl
Speed up Python code with Cython
Python requests module session code example
Python verification code interception identification code example