Reading Time: 2 minutesproperty class in Python property class in Python Getters and setters in Python can be used to set and get attributes. However, they don't strictly impose encapsulation, since attributes can […]
lakshayarora7
Python: Regular Assignment, Shallow copy & Deep Copy
Reading Time: 1 minutesRegular Assignment, Shallow copy & Deep Copy in Python Regular Assignment, Shallow copy & Deep Copy in Python There are three ways to copy objects in Python: assignment, shallow copy […]
Python: High-level file operations using shutil module
Reading Time: 1 minutesHigh-level file operations using shutil module in Python High-level file operations using shutil module in Python The standard library module shutil facilitates basic operations on files and directories. You can […]
PyPro #5 Caesar Cipher
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 […]

