Rust's tuples are not enough? Np.

🦀 **tuplers** — A crate that provides many useful tools for tuples.

🔄 e.g. map, flatten, transpose, sort, split more!

🔥 Supports no-std & WASM targets.

⭐ GitHub: https://github.com/libsugar/tuplers

#rustlang #tuples #programming #tips #tuples #library #devtools

Nested Tuples in Python:
Nested tuples in Python are tuples that contain other tuples as elements.
#python #tuples #NestedTuples #pythontips #learnpython #pythonprogramming #codenewbie #100DaysOfCode #pythondeveloper
Tuple concatenation in Python:
Tuple concatenation in Python means combining two or more tuples using the + operator.
#python #tuples #pythontips #TupleConcatenation #codesnippet #learnpython
Tuple Membership testing:
Tuple membership testing checks if an element exists in a tuple using the ''in'' or ''not in'' operators.
#pythoncoding #tuples #pythontips #coding #learnpython #pythonprogramming #TupleMembership #codenewbie #developerlife #100daysofcode
Hey don't give me access to computer or I do this #maui #dotnet #tuples #system
Word Search Puzzle 837

Word List : #canduc #vermetus #sandwood #odours #croisad #fume #doses #vara #quintals #tuples #moonshot #coauthor #ophthalm #import #toper #rollinia #monish #siliqua

Kara Finance

@skimlines @cs

It's fine for #lists - but it's not the most "#Pythonic" way to do this, at least for lists. Like some other built-in objects, lists have a method `.copy()` which does what it says - returns a #copy of the #object. That's more obvious than using `...[:]` when reading the code, so that tends to be the preferred way in Python.

Unfortunately, #tuples don't have .copy(). They do support [:]. 🤷

[...]

So... 2-pull or tuhh-pull...? 🤔

#python #tuples

2-pull
66.7%
tuhh-pul
33.3%
Poll ended at .

Quick Python Quiz - Lists vs. Tuples!

Can you explain this? What's the difference between a list and a tuple in Python?

#python #pythoncode #lists #tuples #analytics

Does anyone know of a Python linter which will warn when you forget the trailing comma in something which was *supposed* to be a tuple? Today's example was:

args = [("f'oo", "bar"), ("baz")]

The second item in the list ends up being a list of characters instead of a 1-element tuple. Grr.

#Python #Linting #Tuples