Reading Time: 1 minutesUsing __init__() in Python Using __init__() in Python The __init__ method is one of several class methods which are called implicitly on certain events. These methods are called magic methods, […]
Python
Python: Interchanging Data Structures
Reading Time: 1 minutesInterchanging Data Structures in Python Interchanging Data Structures in Python You can make any data structure from any other data structure using the builtin constructors list(), tuple(), dict(), set(), frozenset() […]
Python: Using builtin chr() & ord() functions
Reading Time: 1 minutesUsing chr() & ord() in Python Using chr() & ord() in Python The ord() function takes a single character (special ones too) and returns its Unicode value. Unicode is a […]
Object Oriented Python: Naming Convention of Variables/Attributes
Reading Time: 1 minutesNaming Convention of Variables/Attributes in Python Naming Convention of Variables/Attributes in Python There are 4 conventions followed while naming variables in Python: Dunder attributes/Magic attributes such as __doc__, __name__ etc. […]
Zen of Python: import this
Reading Time: 1 minutesZen of Python Zen of Python The this module reveals a list of guidelines which the Python developers had in mind while developing the language. It encapsulates the philosophy that […]
Operator Precedence in Python
Reading Time: 1 minutesOperator Precedence in Python Operator Precedence in Python Following is the order in which operators in Python are evaluated. The operators at the top are evaluated first, and ones lower […]
Python: Duck Typing
Reading Time: 1 minutesDuck Typing in Python Duck Typing in Python Python allows the user to skip the data type of variables. It doesn't even require you to declare the return type of […]
Python: Docstrings
Reading Time: 1 minutesDocstrings in Python Docstrings in Python You can provide a helpful description of your functions, classes, modules in form of docstrings. Documentation strings need to be the first line of […]
Python: Unpacking Iterables into Individual Variables
Reading Time: 1 minutesUnpacking Iterables into Individual Variables in Python Unpacking Iterables into Individual Variables in Python In Python, iterable objects can be decomposed into individual components in a single statement. This is […]
Python: When to use which data structure
Reading Time: 1 minutesWhen to use which data structure in Python When to use which data structure in Python Each data structure has an array of associated methods and attributes, and each one […]

