Python Baby Steps 103

Mihir Dhakan
Jun 1, 2021

--

In this story, we will learn about the tuples in the Python Programming Language. By the end of this, you’ll know the basics tuple operations in Python, including indexing, slicing, and sorting.

Get your hands dirty by experimenting Tuples in Python

A tuple is created by placing all the items (elements) inside parentheses (), separated by commas. The parentheses are optional, however, it is a good practice to use them.

A tuple can have any number of items and they may be of different types (integer, float, list, string, etc.)

So, now as you know what is Tuples — Let’s get our hands dirty.

Keep coding ! See you soon !

--

--

Mihir Dhakan
Mihir Dhakan

Written by Mihir Dhakan

Data Evangelist | Blogger | Super Optimist

No responses yet