Posts from Python

Extract Unique Elements from Tuple in Python

By Paras Saini

In this post, I’ll explain to you about tuples and how you can extract unique elements from tuples in Python. So let’s get started. Python Tuples: Before discussing tup.... Read More

How to transpose a list of lists in Python

By Paras Saini

In this post, I’ll explain to you how you can transpose a list of lists in Python. Transpose Before going deeper let me first explain about transpose so transpose is define.... Read More

Printing Lists as Tabular Data in Python

By Paras Saini

In this post, I will explain to you how you can Print a List as Tabular Data in Python language. To know about list refer to the post Python List and Basic Python Set method or ht.... Read More

Trim a string in Python

By Paras Saini

In this tutorial, I’ll explain to you how you can trim a String in Python. String in Python: As you already know that it’s an easy task to work with string in Python..... Read More

Pythagorean Theorem in Python calc: find a, b=n/a, c=n/a

By Vikram Negi

In this tutorial, We’ll discuss how you can calculate the side of any right angle triangle using Pythagorean Theorem in Python. Before that, let’s get quick look at Pythago.... Read More

What does “at” @ symbol do in Python

By Seepak Kumar

We use the “@” symbol at the start of a line for function or class decorators. A decorator is a function that takes another function as an argument, adds some functiona.... Read More

What does double slash // operator do in Python

By Seepak Kumar

When dealing with numbers, we sometimes need to truncate a float value by removing its decimal places. Unlike, Java where we simply typecast the value to an integer to get the trun.... Read More

Find most frequent element in a Python List

By Rohit Arodi

In this tutorial, we are going to see how to find the most frequent element in the Python list. The element in the list can be an integer or a string. There are many solutions for .... Read More