What is the difference between list and tuples?



What is the difference between list and tuples?..

Answer / Deenanath Ram

The main difference between lists and tuples in Python is that lists are mutable (they can be changed after creation), while tuples are immutable (their values cannot be changed once set). Lists are denoted by square brackets `[]`, and tuples are denoted by parentheses `()`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Explain all the file processing modes supported by python?

1 Answers  


What are the tools that help to find bugs or perform static analysis?

1 Answers  


What are views in python?

1 Answers  


How do you add elements to a list in python?

1 Answers  


Is numpy faster than python?

1 Answers  


What is a list in python?

1 Answers  


What is an abstract class in python?

1 Answers  


How do you create a dictionary which can preserve the order of pairs?

1 Answers  


What is the function of negative index?

1 Answers  


Do you know what does the <yield> keyword do in python?

1 Answers  


Are pandas distributed?

1 Answers  


Python list of lists, changes reflected across sublists unexpectedly

1 Answers  


Categories