Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Python by (2.2k points)

Could someone tell me why Tuples are faster than List in Python?

1 Answer

0 votes
by (3.9k points)

Tuples get stored in single block of memory and are immutable which helps Tuples from needing extra spaces to store new objects, whereas Lists are allocated in two blocks of memory which results in taking more space to store new objects.

Tuples are faster than Python because of the above-mentioned reason. Want to learn Python and become an expert? Then check out Intellipaat’s Python course which offers a course of 42hrs with 50hrs for projects and exercises to help you get started.

Also, do check out our YouTube video on Python Training from our experts to help you get started.

Related questions

0 votes
1 answer
asked Sep 23, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Aug 1, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Aug 1, 2020 in Python by ashely (50.2k points)

Browse Categories

...