04/04/2023 9:44 am
Topic starter
Notifications
Clear all
What is the difference between list and tuples in Python?
Students’s Forum
1
Posts
2
Users
0
Likes
556
Views
0
What is the difference between list and tuples in Python?
Answer
Add a comment
Add a comment
1 Answer
0
04/04/2023 5:17 pm
The primary difference between tuples and lists is that tuples are immutable as opposed to lists which are mutable. Therefore, it is possible to change a list but not a tuple. The contents of a tuple cannot change once they have been created in Python due to the immutability of tuples.
Add a comment
Add a comment
Forum Information
- 14 Forums
- 1,836 Topics
- 5,052 Posts
- 0 Online
- 1,078 Members
Our newest member: Richardnop
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed