Latest Posts From Vijaykrishna Ram

Json Module

Python json Module

Before we dive into the Python JSON module, let’s understand what JSON is. The JSON (JavaScript Object Notation) is a standardized format that allows exchanging of data across the internet. Since this has become the standard for any information exchange through the internet, it makes sense for any Python application to send and receive data […]

Python Iterator

Python Iterator

A Python Iterator is an object that can be iterated upon. Any kind of object that supports this kind of iteration is called as an iterator. Now, you may be confused. There exists another object called iterable. What is that? Let’s take a look. Iterators and Iterables Any iterable is an object that can be […]

Python Zfill

Python string zfill()

The Python string zfill() method is used to pad a string with zeros on the left until a specific width is reached. This is the most “Pythonic” way to add padding to a string, instead of manually iterating using for loops. Syntax of Python String zfill() Method The Python string zfill() function belongs to the […]

Python Set To List

How to Convert a Set to List in Python?

We can convert a Set to List in Python using the built-in list() method. Let’s take a look at some examples using this function. Methods to Convert a Set to List in Python We’ll go over simple methods that will allow the conversion of a python set object to a list object quickly. 1. Using […]

Python Lower

Python String lower() Method

Python String lower() method converts a string object into a lower case string. This is one of the builtin string functions in Python. Since strings are immutable in Python, this method only returns a copy of the original string. Syntax and Usage of Python String lower() Method Format: Here, str_copy is the lowercase string of […]

Python Print Without Newline

There are different ways through which we can print to the console without a newline. Let’s quickly go through some of these methods. 1. Using print() We can use the print() function to achieve this, by setting the end (ending character) keyword argument appropriately. By default, this is a newline character (\n). So, we must […]