Python - Basic Articles
Hangman is a word game in which the computer will randomly select a word from the dictionary and the player has to guess it correctly… Read More
In this article, we delve into the capabilities and advantages of the Django Admin Interface, exploring how its customizable features and streamlined workflows empower developers… Read More
Python supports very powerful tools when comes to image processing. Let’s see how to process the images using different libraries like ImageIO, OpenCV, Matplotlib, PIL,… Read More
Given a string, the task is to check if that string contains any special character (defined special character set). If any special character is found,… Read More
Given a matrix, the task is to find the maximum element of each row. Examples:  Input : [1, 2, 3] [1, 4, 9] [76, 34,… Read More
Openpyxl is a Python library for reading and writing Excel (with extension xlsx/xlsm/xltx/xltm) files. The openpyxl module allows Python program to read and modify Excel… Read More
Python time sleep() function suspends execution for the given number of seconds. Syntax of time sleep() Syntax : sleep(sec) Parameters :  sec : Number of… Read More
The numpy.floor) is a mathematical function that returns the floor of the elements of array. The floor of the scalar x is the largest integer… Read More
The numpy.ceil() is a mathematical function that returns the ceil of the elements of array. The ceil of the scalar x is the smallest integer… Read More
The numpy.round_() is a mathematical function that rounds an array to the given number of decimals. Syntax : numpy.round_(arr, decimals = 0, out = None)… Read More
In Python, the dir() function is a built-in function used to list the attributes (methods, properties, and other members) of an object. In this article… Read More
Python String encode() converts a string value into a collection of bytes, using an encoding scheme specified by the user. Python String encode() Method Syntax:… Read More
Given a string that contains both upper and lower case characters in it. The task is to count a number of upper and lower case… Read More
uniform() is a method specified in the random library in Python 3. Nowadays, in general, day-day tasks, there’s always the need to generate random numbers… Read More
Given a list of integers with duplicate elements in it. The task is to generate another list, which contains only the duplicate elements. In simple… Read More
Minkowski distance is a metric in a normed vector space. Minkowski distance is used for distance similarity of vector. Given two or more vectors, find… Read More
Most of the time, while working with Python interactive shell/terminal (not a console), we end up with a messy output and want to clear the… Read More
In the world of programming, seldom there is a need to replace all the words/characters at once in the whole file python offers this functionality… Read More
TKinter is widely used for developing GUI applications. Along with applications, we can also use Tkinter GUI to develop games. Let’s try to make a… Read More
The format() method is a powerful tool that allows developers to create formatted strings by embedding variables and values into placeholders within a template string.… Read More