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 |
Explain all the file processing modes supported by python?
What are the tools that help to find bugs or perform static analysis?
What are views in python?
How do you add elements to a list in python?
Is numpy faster than python?
What is a list in python?
What is an abstract class in python?
How do you create a dictionary which can preserve the order of pairs?
What is the function of negative index?
Do you know what does the <yield> keyword do in python?
Are pandas distributed?
Python list of lists, changes reflected across sublists unexpectedly