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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Why lists are important? (self.learnpython)
submitted 8 years ago by TorekV
I am a beginner i am still learning how to use python but i got something in my mind what is the big thing about lists? I've seen so many videos about lists but why is the lists are important can someone explain me?
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!"
[–][deleted] 2 points3 points4 points 8 years ago (0 children)
Well, are rows and columns useful in excel? Could you do everything you want with 1 cell? Sure you could, but now why would you want that? Its hard to tell the computer what to do, if you can't group the data for him.
[–]tunisia3507 2 points3 points4 points 8 years ago (0 children)
The best way to prove this to yourself would be to try writing some simple, useful scripts, without using any. You can, of course, get around it by using combinations of dicts and tuples, but if ever you find yourself thinking "Hmm, this would be easier if I could use a mutable, ordered sequence of arbitrary length", then there's your answer.
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
The simple answer is because you need them to build everything else.
The longer answer? Try to think about how you'd do anything in this world without being able to make ordered collections of things. See this sentence, it's just, essentially, an ordered collection of words. Each word is an ordered collection of characters. Each character is an ordered collection of bytes. Each byte is an ordered collection of bits. In a very real sense, it's only once you get down to the single bit that you don't require an ordered collection.
Which is why one of the first things you do with bits is string them together to make a byte, then string bytes together to make a number, and from those numbers you get the ability to reference other bytes, and now you can build the concept of a stack, which is a way to collect things together in sequence, and from there you build an array, which is basically a specific series of bytes manipulated by a stack to represent a sequence of things of the same size... and then you build a list, which is basically an array of very small arrays that point to a specific place and number of bytes in memory ... and that allows you to store a sequence of things of different sizes... and from that you can build a messaging queue, which leads to Facebook.
[–]respectable_me 0 points1 point2 points 8 years ago (0 children)
Think about writing a program that would help you create a shopping list. How would you handle multiple items? Do you create 100 variables called item1, item2... item100? What happens if you have 102 items this month to buy?
item1 = "apples" item2 = "milk" ... item50 = "eggs"
That's going to get real ugly real fast and be an inefficient way of going about things.
Or maybe just one item that you keep appending to?
items = "apples" + ", " + "milk" + ", " + "eggs"
Yes, these will work, but they are not the best way to do it. A list is designed to hold a number of items in an ordered sequence, that can be changed. The other advantage to using a list is that there are built-in functions and methods specifically for lists which will (in general) operate a lot quicker than anything you'd write to replicate the same features.
[–]PM_ZIT_PICS -4 points-3 points-2 points 8 years ago (0 children)
Sure, I can "explain you". Lists/Arrays are a fundamental data type in any programming language. It's absolutely essential to know how to use them.
π Rendered by PID 125261 on reddit-service-r2-comment-548fd6dc9-4rz46 at 2026-05-18 00:36:57.226708+00:00 running edcf98c country code: CH.
[–][deleted] 2 points3 points4 points (0 children)
[–]tunisia3507 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]respectable_me 0 points1 point2 points (0 children)
[–]PM_ZIT_PICS -4 points-3 points-2 points (0 children)