
Notifications
Clear all
What is the difference between list and tuples in Python?
Students’s Forum
1
Posts
2
Users
0
Likes
583
Views
0
04/04/2023 9:44 am
Topic starter
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
- 22 Forums
- 1,969 Topics
- 5,307 Posts
- 0 Online
- 1,282 Members
Our newest member: TimothySenue
Latest Post: Space bug using " & n b s p ; "
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed