What is difference between tuple and list?
Answer / Rakesh Singh
The main difference between tuples and lists in Python is that tuples are immutable (unchangeable), while lists are mutable (changeable). Tuples can contain items of different data types, just like lists. They can be used when the order of elements needs to be preserved but there's no need for modification. Lists, on the other hand, are more flexible and can be modified at any time.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is python rest api?
How are instance variables different from class variables?
What are the 3 types of relation?
How do I find the current module name?
What is none literal in python?
What is pack in python?
What do you understand by deque in python?
Is there a way to remove the last object from a list?
Can python be used for web client and web server side programming?
Does python have a string ‘contains’ substring method?
What is a lambda in programming?
What does __ name __ mean in python?