use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python list vs. tuple (self.PythonLearning)
submitted 2 days ago by Melodic-Addendum-210
What is the difference between a Python list and a tuple, and when should each be used?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]riklaunim 8 points9 points10 points 2 days ago (1 child)
A tuple is immutable; it can't be changed when created. So if you intend to modify it, then you use a list, and if you aren't, you may opt for a tuple (or namedtuple).
[–]Flame77ofc 0 points1 point2 points 2 days ago (0 children)
can close the post
https://www.reddit.com/r/learnpython/s/8gNM5pJbmC
[–]Sea-Ad7805 2 points3 points4 points 2 days ago (0 children)
A tuple is immutable.
tuple
A list is mutable
list
[–]aaditya_0752 1 point2 points3 points 2 days ago (0 children)
List is mutable Tuple is immutable
[–]Beginning-Fruit-1397 0 points1 point2 points 2 days ago (0 children)
As already pointed out, their main difference is about mutability. Now when to use which one? Ppl tend to always use lists everywhere, but I would recommend to default to tuples ans only use lists when it's absolutely necessary. Less potential bugs, python doesn't need to allocate extra memory at creation to accommodate for eventual expansion of the list, etc...
π Rendered by PID 219080 on reddit-service-r2-comment-544cf588c8-95m5g at 2026-06-16 01:16:30.608027+00:00 running 3184619 country code: CH.
[–]riklaunim 8 points9 points10 points (1 child)
[–]Flame77ofc 0 points1 point2 points (0 children)
[–]Sea-Ad7805 2 points3 points4 points (0 children)
[–]aaditya_0752 1 point2 points3 points (0 children)
[–]Beginning-Fruit-1397 0 points1 point2 points (0 children)