python tuple – POFTUT

Python Data Types

Python Data Types

Python provides different data types in order to store values. Every data type in Python is actually an instance of classes. Python provides the following data types. Numbers Boolean String List Tuple Set Dictionary Binary Types Python Numbers Python numbers are consist of two main types named integer, floating-point, and complex numbers. Integer numbers can … Read more

How To Reverse Python List Elements?

How To Reverse Python List Elements?

The list is a popular structure or composite data type used in Python programming language. One of the most used functions or operations with a list is reversing the list items. Reversing the list items will make the last item as the first item vice versa. In order to reverse a list in Python, there … Read more

How To Sort List In Python?

How To Sort List In Python?

Python provides different types of List structures in order to hold multiple elements in a single variable like an array. Generally, the same type of data is held in these elements and we may want to sort them for value or key, incremental or decremental. In this tutorial, we will examine sorting Python List structure … Read more

How To Use Python Print Function Tutorial with Examples

How To Use Python Print Function Tutorial with Examples

Python is a very expressive language that provides a lot of different output types and extensions. print() is one of the most used functions to print output. In this tutorial, we will look at different usage types of function print(). print() Function Syntax The function print() provides advanced usage in order to print given message, string … Read more