Python Forum
What is the difference between list and tuples in Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the difference between list and tuples in Python?
#1
What is the difference between list and tuples in Python?
Reply
#2
Lists and tuples have much in common, but the big difference is: a list is mutable. A tuple is not, you cannot modify a tuple after creation.
Read this: https://docs.python.org/3/tutorial/datastructures.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  About List & Tuples MilesWeb 4 23,606 Oct-09-2021, 11:01 AM
Last Post: perfringo
  strange difference between list() and tuple() using iter() Skaperen 1 1,793 Nov-01-2020, 06:49 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020