pub-3785248829033902 | Python: Length and Case sensitivity | - Big data with Python

| Python: Length and Case sensitivity |

Python is Case-Sensitive!

This means that the interpreter treats upper- and lowercase letters as different from one another. For example, A is different from a and def main() is different from DEF MAIN(). Also remember that all reserved words (except True, False and None) are in lowercase.


The best way to learn new things is to take a practical approach of the things you want to learn. Here is a fragment of code that demonstrates the use of the statistics statement in Python:

Æ’ python command

name = 'John Smith'
print(len(name))
print(name.lower())
print(name.upper())
print(name)

output

10
john smith
JOHN SMITH
John Smith    


Previous
Next Post »