InFAUN — Developer Community 🐾bySunil KumarPython: Context ManagersWhat is Context managers?Sep 18, 2022Sep 18, 2022
InTowards DevbySunil KumarPython Tips: Must know “Decimal” Vs “Float”In Python DECIMAL and FLOAT both are used to store numerical values. It is sometimes confusing which to use when. Float is an Approximate…Jul 4, 20221Jul 4, 20221
InTowards DevbySunil KumarPython: Deep vs Shallow copyAs we know python assignment statements do not copy objects, they simply create bindings between a target and an object.Aug 8, 2022Aug 8, 2022
InTowards DevbySunil KumarPython: Pillars of Object-Oriented ProgrammingA programming paradigm is an approach to solving a problem using some programming language. We can also say it is a method to solve a…Aug 21, 2022Aug 21, 2022
Sunil KumarPython: OS ModuleThe OS module in Python provides functions for interacting with the operating system irrespective of whether it is a Windows Platform…Aug 22, 20221Aug 22, 20221
Sunil KumarPython Tips: How to Create Dataclass with Keyword-only fields ??Python dataclasses now support fields that are keyword-only in the generated __init__ method. There are several ways of specifying…Sep 1, 2022Sep 1, 2022
InTowards DevbySunil KumarPython : __init__ Vs __new__ !!In python classes you might have seen __new__ and __init__ . The __new__ is called a constructor function and __init__ is called an…Aug 5, 20222Aug 5, 20222
InTowards DevbySunil KumarWhat is __mro__ in Python?Method Resolution Order (MRO) is the order in which Python looks for a method in a hierarchy of classes. MRO is a concept used in…Aug 14, 2022Aug 14, 2022
InTowards DevbySunil KumarPython: Working with the Requests libraryRequests is an open-source, HTTP library that simplifies making HTTP requests to web servers and working with their responses. The library…Aug 16, 20221Aug 16, 20221
InTowards DevbySunil KumarPython: what is configparser ??Python ConfigParser is a class that implements a basic configuration language for Python programs. It provides a structure similar to…Aug 13, 2022Aug 13, 2022
Sunil KumarWhat is “The Zen of Python” ??If you google it, you will find many books/articles that explain how to become a better python developer. But there is really no way around…Feb 22, 2022Feb 22, 2022
Sunil KumarPython: Virtual EnvironmentsThere may be a situation when you need to work/contribute to multiple python projects that use different python versions and other…Feb 13, 20222Feb 13, 20222
InTowards DevbySunil KumarPython Tips: Working with Python DictionariesPython dictionary is an unordered collection of items. Each item of a dictionary has a key/value pair. With the requirement that the keys…Mar 5, 2022Mar 5, 2022
InTowards DevbySunil KumarPython Tips: How to write Pythonic Code?Coding style plays a very important role in how you write a clean pythonic program.Feb 8, 20221Feb 8, 20221
Sunil KumarPython: Dynamic Typing vs Static TypingPrograming languages can be categorized into two types Dynamic typing and static typing. Python is a dynamically typed language. This means…Feb 19, 2022Feb 19, 2022
Sunil KumarPython Data Parsing and Validation with Pydantic: Part-1Pydentic is a Python package for data parsing and validation, based on type hints. Pydentic enforces type hints at runtime and provides…Mar 18, 2022Mar 18, 2022
InFAUN — Developer Community 🐾bySunil KumarPython Dict.setdefault vs Dict.getThere are different ways you can retrieve values from a dictionary. Let’s see some of them below.Mar 20, 2022Mar 20, 2022
InTowards DevbySunil KumarPythonTips: Positional argument Vs keyword argument !!!Python functions can have the following two types of arguments: Please also see details in python docFeb 1, 20221Feb 1, 20221