Top Tweets for #Tuple
Where does switching from list or dict to tuple save the most memory or lookup time in your Python services?
https://t.co/IehvdOYhR8
3 core Python containers in 10 seconds. Which one does your codebase abuse?

Tuple vs list isn't just about mutability; it signals fixed records vs dynamic collections in memory.
https://t.co/iPfG5ulD4o
Python List vs. Tuple
@PythonBackend Now try passing that same tuple into hash(data) or using it as a dict key. Seeing a tuple suddenly fail a hash check catches plenty of devs off guard.
@PythonDvz it prints (10, [20, 30, 40]). No error.
A tuple is immutable, but the list inside it is mutable.
So .append() works fine.
@clcoding Solid breakdown—also worth adding `O(1)` average membership lookup on sets vs. `O(n)` on lists/tuples, and noting set elements must be hashable (so tuples work, lists don't).
Python: List vs Tuple vs Set — Do You Know the Difference?
Python provides three powerful data structures, but each behaves differently:
🔹 List []
Ordered
Mutable
Allows duplicate values
🔹 Tuple ()
Ordered
Immutable
Allows duplicate values
🔹 Set {}
Unordered (no guaranteed order)
Mutable
Does not allow duplicate elements
![clcoding's tweet photo. Python: List vs Tuple vs Set — Do You Know the Difference?
Python provides three powerful data structures, but each behaves differently:
🔹 List []
Ordered
Mutable
Allows duplicate values
🔹 Tuple ()
Ordered
Immutable
Allows duplicate values
🔹 Set {}
Unordered (no guaranteed order)
Mutable
Does not allow duplicate elements](https://pbs.twimg.com/media/HXli3ODa4AAy51-.jpg)
Which Python data structure gets abused the most in production codebases: list, tuple, set, or dict?
https://t.co/BKY3hu1NVi
Most Python codebases abuse list everywhere because devs forget tuple is immutable and set kills O(n) search.
OLUYOM TUPLERE BAK OOFS ABAHUQHU😭😭😭😭😭 EFE😭😭😭😭😭😭

typedef OrderIdAlias = int yazdın, ID'lerin güvende mi?
Değil. Alias sadece isim:
🟥 typedef → sipariş no ile müşteri no yer değişse de derlenir
🟦 extension type → analyzer daha yazarken reddeder
Dart Advance #2: Typedefs, 7 hata ve doğrusu 👇
https://t.co/411JTgigmR
A classic Python mutability edge case. Test your depth on how intermediate objects behave inside a tuple.
https://t.co/QzG3RJYL1n
What does this Python snippet output: A, B, C, or D?

This tuple augmented assignment trap always divides Python devs. Will this script mutate the list or crash?
https://t.co/QzG3RJYL1n
What does this Python snippet output: A, B, C, or D?

Does a TypeError block internal list mutations during tuple modification? The bytecode explanation is wild.
https://t.co/QzG3RJYL1n
What does this Python snippet output: A, B, C, or D?

Most developers assume Python tuples are 100% immutable, but they forget inner containers. What is the output: A, B, C, or D?
https://t.co/1TbiEgSLCo
What is the output of this Python code: A, B, C, or D?

Tuple mutation mechanics in production backend systems. Will it print the original container or the mutated sequence? A, B, C, or D?
https://t.co/1TbiEgSLCo
What is the output of this Python code: A, B, C, or D?

90% of Python developers fail this tuple mutation quiz on their first try. Does the try-except block bypass the assignment rule?
https://t.co/1TbiEgSLCo
What is the output of this Python code: A, B, C, or D?

A dangerous Python corner case that catches senior engineers off guard. Tuple assignment rules vs in-place mutation. What is printed?
https://t.co/1TbiEgSLCo
What is the output of this Python code: A, B, C, or D?

We design and building homes not just a house contact us on 08060813677. #tuplexconstruction #tuplexconsults

see koro over here @TupletX
@Capinek88 Klasická válka v chcharstánu.
A ty, jak víme že zápasů s cirkusem, nám vůbec nevoní.
Ti naši hroťáci...to je nějaký prokletí?
Suchomel je marný na své straně, tuplem na druhé.
3/10 — Unpacking in comprehensions
Suppose you have a list of tuples:
pairs = [(1, 2), (3, 4), (5, 6)]
You want to create a list containing every number.
Python 3.15 introduces unpacking in comprehensions, making this possible:
numbers = [*pair for pair in pairs]
The exact syntax for unpacking comprehensions should be checked against the official documentation before using it. The idea is to make working with iterable data more expressive.
Day 1 - started with Next.js, learnt folder based routing, server side architecture and basic things.
- started with Typescript, learnt about basic types, type interference like how to give types to things in js and all completed till arrays and tuples.
gonna work hard tommorrow.
Rust superpower used today: The Newtype Pattern.
Instead of `type Slot = u64`, we used a tuple struct:
`struct Slot(pub u64);`
Why? Zero runtime cost, but the compiler prevents accidentally passing a balance or height where a slot was expected. Compile-time safety FTW!
Python tip:
List = changeable
Tuple = fixed
"[]" → List
"()" → Tuple
Simple concept, but understanding when to use each one makes your Python code better.
Still learning, still building.
![ZacchTech's tweet photo. Python tip:
List = changeable
Tuple = fixed
"[]" → List
"()" → Tuple
Simple concept, but understanding when to use each one makes your Python code better.
Still learning, still building. https://t.co/DaruhWwPqE](https://pbs.twimg.com/media/HT-9O2VWMAAuKBp.jpg)
たわ家·唾(二)

Elixir's Calendar․ISO just got cheaper to shift. Duration options and reduction are replaced by tuple dispatch: whole seconds fold into the time tuple, microseconds land in a single shift, and a fast path handles the zero-shift case. The PR reports roughly 1.5x faster execution and lower memory use. Time arithmetic inside loops gets cheaper, with no change to calling code.
The date path got the same treatment. Duration options and Enum․reduce are out; inlined duration units and tail-calling pattern dispatch are in, reported at roughly 1.2 to 2x faster. The stated goal is avoiding intermediate allocations, which matters most where shifts are applied at volume rather than once per request. The change landed on main in commit form.
Separately, José Valim pointed the project's release links at the GitHub releases page and refactored the README. Documentation plumbing. Neither changes runtime behavior. #elixir
https://t.co/b0kP9GIyGp
#Creating a #Tuple in #Python Full video at this link https://t.co/xlI0OXZwgx #pythonprogramming #pythonforbeginners #pythontutorial
I work on my first project with @scala_lang and i admit that is a great programming language
#FP #Monad #Option #Try #Either #Tuple #PatternMatching #PatternGuards #CaseClasses ....
#johnsmithfestival #laukaa #antonyparviainentrio #marcohietala #dragonwhite #keikka #antonyparviainen #tuple #festivaali https://t.co/8Y8O3Jlyo5
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.2M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers



















