Safa Mulani

An enthusiast in every forthcoming wonders!

Python format() function

Hello! In this article, we will be focusing on formatting string and values using Python format() function. Getting started with the Python format() function Python format() function is an in-built String function used for the purpose of formatting of strings. The Python format() function formats strings according to the position. Thus, the user can alter

Python format() function Read More »

How to crop an image in Python

Hello! In this article, we will be focusing on different ways to crop an image in Python. Now, let us unveil and understand the background functions being used to crop an image. Technique 1: Python PIL to crop an image PIL stands for ‘Python Image Library‘. PIL adds image editing and formatting features to the

How to crop an image in Python Read More »

Understanding Python f-string

String formatting in Python can be achieved using f-string. Thus, in this article, we will be focusing on the implementation of Python f-string. Necessity of f-string in Python Python f-string basically serves the purpose of string formatting. Before the emergence of “f-strings”, we had the following ways to format strings in Python: 1. Python ‘%’

Understanding Python f-string Read More »

Python bytearray() function

In this article, we will be having a look at one of the Python’s in-built function — Python bytearray() function. Understanding Python bytearray() function Python has in-built bytearray() method that creates an array of bytes and returns a bytearray object of the created array of the defined size by a particular iterable or a value.

Python bytearray() function Read More »