When using triple quote string we should use double quotes
Useful Commands
Miscellaneous Points
The zfill() command can be used to add zero’s to the start of a string. The total length of the string is passed as parameter.
The ord() function returns the Unicode representation of the input character. The chr() function is used to perform the reverse operation.
The partition() function is used split a string always into three parts (Everything before matched term, the matched term, everything after matched term). If no match the entire string is returned as first term.
The if __name__ == '__main__' syntax can be used as an entry point (main function) in Python. When we run a python application a variable called __name__ is created which will be equal to __main__ for the main script file
As of Python 3.7 dictionaries are treated as a ordered collection (Insertion order is maintained)
The dir() function is an inbuilt function in python which returns the list of valid attributes and methods of a given objects
Python does not have static attributes like in other programming languages. Attributes set using the constructor are instance attributes while the one declared in the class body but not in any method are class attributes
Python does not support the concept of Method Overloading (Same function name different parameters)
re.match() is as adding ^ to the match condition
Replacing the code of a function from a class during runtime is called as Monkey Patching