Reading Time: 1 minutesCaesar Cipher in Python Caesar Cipher in Python Julius Caesar was a Roman dictator who came up with a clever way of passing confidential information to his generals without having […]
Python: Removing duplicate items from lists
Reading Time: 1 minutesRemoving duplicate items from lists in Python Removing duplicate items from lists in Python A simple way to remove duplicate items from a list is to cast it to a […]
Object Oriented Python: Creating random objects of subclasses of a superclass
Reading Time: 1 minutesCreating random objects of subclasses of a superclass in Python Creating random objects of subclasses of a superclass in Python Using the random module and Generators, we can have Python […]
Making a variable global in Python: global keyword
Reading Time: 1 minutesMaking a variable global in Python Making a variable global in Python There will be instances where you are declaring an object inside a confined piece of code, and you […]
Python: Using builtin functions isinstance() & issubclass()
Reading Time: 1 minutesUsing isinstance() & issubclass() in Python Using isinstance() & issubclass() in Python isinstance() The builtin function isinstance(obj, cls) returns True if obj is an instance of class cls, else returns […]
Python: Enumerating with enumerate()
Reading Time: 1 minutesenumerate() in Python enumerate() in Python It is sometimes needed to have an index counter for elements of an iterable object. Python's builtin enumerate class enables us to do just […]
Python: Lambda Expressions (Anonymous functions)
Reading Time: 1 minutesLambda Expressions in Python Lambda Expressions in Python Lambda expressions(a.k.a. lambda forms) in Python are used to create anonymous functions. In a nutshell, these functions do not have the def […]
Python: Installing external modules using pip
Reading Time: 2 minutespip in Python pip in Python Python comes with many useful modules out-of-the-box. In addition to these modules, there is a large library of third-party modules which Python developers have […]
Python: Augmented Assignments
Reading Time: 1 minutesAugmented Assignments in Python Augmented Assignments in Python There are cases when you are storing the result of a binary operation into one of the operands. For example, a = […]
Python: Using semi-colon (;) to delimit statements in a suite
Reading Time: 1 minutes; in Python ; in Python Python uses new-lines as statement delimiters. This is in contrast to many contemporary languages which use semi-colons to delimit statements. However, Python also allows […]

