How are tuples different from lists?

 

Answer:

The difference between tuples and lists in Python is that tuples are immutable and lists are mutable. This means that tuples cannot be changed after they are created, but lists can be modified, added, or removed elements.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo