Q:

What is the difference between list and tuples in Python?

0

What is the difference between list and tuples in Python?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

List  Tuple
Lists are mutable. They can be changed. Tuples are immutable (tuples are lists which can’t be changed).
Lists are slower than tuples. Tuples are faster than the list.
Syntax: list_1 = [20, ‘aticleworld, 30] Syntax: tup_1 = (20, ‘aticleworld, 30)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Python Interview Questions and Answers

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What Does The __ Name __ Do In Python?... >>
<< What are the Python libraries? Name a few of them...