Is python assignment case sensitive?
Example practice:
If you 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
As you can see, there is a NameError here, so python is case-sensitive
The above is the detailed content of Is python case sensitive when assigning values?. For more information, please follow other related articles on the PHP Chinese website!