Duck Typing in Python

Duck typing is a variation of Dynamic Programming and uses a form of abductive reasoning for type checking. In this article, we will focus on the main intuition of duck typing and examples of ducking typing in python. What is Duck Typing in Python? – Abductive Reasoning The term duck arguably comes from the popular

Duck Typing in Python Read More »

Numpy Vectorization

In this article, we’ll learn Numpy Vectorization in Python. Numpy is a C implementation of arrays in Python that is comparatively faster while having the same Python interpreter. In this article, we explore how we can apply a function element-wise to a sequence using numpy.vectorize(). Why for loop isn’t best for Numpy Vectorization? To apply

Numpy Vectorization Read More »

Variable Scopes in Python

Variable scope is an interesting, useful, and easy-to-understand concept that a python programmer must know before dealing with variables and functions. In this tutorial, we will discuss what scopes are, the types of scopes python has, and we will understand the keywords global and nonlocal. What is a scope? The scope of a function, class,

Variable Scopes in Python Read More »

Deploy ML models using Flask

In this article, we discuss how we can deploy ML models using Flask. This article assumes no prior knowledge of the Flask library. What is Deployment? Deployment in very simplified terms means making your code available for use of end-users. Let us take an example here. You design an app that you believe can be

Deploy ML models using Flask Read More »

Double-Ended Queue in Python

A Double-Ended Queue is a data structure that is used to store a collection of items that are meant to be in a queue. It is an extension of the queue data structure with some additional features. Pre-Requisite: Queue A queue is a data structure that is used to store a collection of items in

Double-Ended Queue in Python Read More »