Question

What is the difference between a list and a tuple in Python?

A A list is mutable, while a tuple is immutable
B A list is immutable, while a tuple is mutable
C A list can only contain strings, while a tuple can contain any data type
D A list can only contain integers, while a tuple can contain any data type
E A list and a tuple are the same thing
Practice Next

Hey! Ask a query