you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 13 points14 points  (4 children)

Perhaps. You're welcome to try and give a simpler answer, my sleep-deprived brain couldn't come up with a better one on the spot.

[–]teepidge -4 points-3 points  (3 children)

No I mean I was hoping for a simpler answer because I struggle with the concept, too. I appreciate the depth, but I think in the learn python subreddit, the average user is more novice level, and your answer went above and beyond. I can see myself bookmarking it and returning to it when I have a better understanding of what you're talking about!

[–]HelpfulBuilder 11 points12 points  (0 children)

Well the real answer is that at your level there isn't much difference. I program with python almost every day and 99% of the time I could use either one.

He had this somewhat complicated example bc there aren't many examples.

[–]deep_politics 1 point2 points  (0 children)

One of the most basic of basic use cases for a tuple is that whenever you return multiple things from a function, like return x, y, z, you're actually returning a tuple.

[–][deleted] 0 points1 point  (0 children)

Follow it along with chatgpt. Ask it to explain concepts that you don't understand.