Tagged articles
tuple
32 articles · Page 1 of 1
This tutorial explains Python’s bool() function, lists the values that evaluate to False, demonstrates converting numbers, strings, collections, and None to booleans, and shows how implicit conversion works in conditional statements, with concrete code examples for each case.
ListPythonType Conversion
0 likes · 4 min read

This tutorial walks through Python 3's six standard data types—Number, String, List, Tuple, Dictionary, and Set—showing concise code snippets for each type, their typical usage, and the exact console output produced.
ListPythonString
0 likes · 5 min read

This article explores the groundbreaking ES2025 JavaScript features—including pattern matching, enhanced array destructuring, the pipeline operator, native Record & Tuple types, Decimal numbers, improved error handling, and Temporal API integration—showing how they simplify code, boost performance, and move the language toward functional and type‑safe programming.
DecimalES2025JavaScript
0 likes · 7 min read

This article introduces Python's core built‑in data structures—lists, sets, dictionaries, and tuples—explaining their characteristics, typical use cases, and providing clear code examples for creation, modification, and access.
Listdata structuresdictionary
0 likes · 4 min read

This article explains the differences between Python lists and tuples, covering their definitions, mutable vs immutable nature, syntax, performance, common pitfalls, and best-use scenarios such as dynamic collections, fixed data, and dictionary keys, with clear code examples.
ImmutableListmutable
0 likes · 9 min read

This article introduces Python's four fundamental data structures—list, tuple, set, and dictionary—explaining their characteristics, creation syntax, and typical operations to help readers choose the appropriate structure for different programming scenarios.
Listdata structuresdictionary
0 likes · 8 min read

This article introduces Python tuples, explaining their immutable ordered nature, core characteristics, and provides eleven practical code examples ranging from basic definition and indexing to unpacking, concatenation, using tuples as dictionary keys, and converting them to lists, illustrating common use cases and best practices.
Immutablecodingdata structure
0 likes · 8 min read

This article shows how to transform a list of (letter, number) tuples into two independent lists using four different Python approaches—including basic loops, zip unpacking, pandas, and numpy—complete with code examples and output screenshots.
Pythonlist manipulationtuple
0 likes · 5 min read

This article explains Python tuples as immutable list subsets, details their C‑level struct layout, creation and deallocation processes, the internal freelist cache for lengths up to 20, performance advantages over lists, and the special handling of the empty tuple singleton.
CPythonCachePython
0 likes · 15 min read

The article explains CPython's object memory caching, details the structure of the tuple free‑list, reproduces a bug where length‑20 tuples aren't reused, shows the debugging steps, and presents a one‑line source change that corrects the issue in Python 3.12/3.13.
CPythonPythonbug fix
0 likes · 7 min read

This article explains how Python variables reference objects in memory, distinguishes between shallow and deep copying, demonstrates three common copying techniques (slicing, factory functions, and the copy method) with lists and tuples, and shows how to use the copy module for deep copies.
Deep CopyListPython
0 likes · 6 min read

Explore Python’s fundamental composite data structures—lists, tuples, dictionaries, and sets—covering creation, indexing, modification, common methods, and built‑in functions like sum, len, max, and min, with clear code examples illustrating each operation in practice.
Listdata structuresdictionary
0 likes · 5 min read

This article demonstrates four practical ways to transform a list of (letter, number) tuples into two distinct lists—one for letters and one for numbers—using basic loops, zip unpacking, pandas, and numpy, complete with code snippets and output screenshots.
NumPyPandascoding
0 likes · 6 min read

This article provides concise explanations of ten fundamental Python topics, covering differences between lists and tuples, arrays and lists, append versus extend, equality operators, shallow and deep copying, loop control statements, variable scopes, range versus xrange, decorators, and the concepts of iterators and generators.
COPYDecoratorList
0 likes · 7 min read

This article introduces Python’s fundamental data structures—lists, tuples, sets, and dictionaries—detailing how to create them, use common methods, perform operations like concatenation, and understand their mutability with clear code examples.
ListPythonTutorial
0 likes · 8 min read

This article explains Python's comprehension syntax for lists, tuples, dictionaries, and sets, detailing their structures, execution order, and practical examples—including filtering, nested loops, and conditional logic—while showing how to convert generator objects and highlighting common use cases.
ListPythoncomprehension
0 likes · 11 min read

This article introduces Python’s core data structures—lists, tuples, and dictionaries—explaining their definitions, common operations such as adding, modifying, searching, deleting, sorting, nesting, and how to iterate over them, accompanied by clear code examples.
Listdata-structuresdictionary
0 likes · 8 min read

This article introduces Python's immutable tuple and string data types, explains their characteristics, demonstrates how to convert between tuples, lists, and strings, and provides practical code examples for common operations such as indexing, slicing, counting, and formatted printing.
data typesfundamentalstuple
0 likes · 5 min read

This article introduces JDTuple, an Objective‑C tuple library that uses variadic functions, type encodings, and macro tricks to pack arbitrary values, provide key‑based and sequential unpacking, and simplify multi‑parameter passing and return values in iOS development.
DataStructureObjective-C++iOS
0 likes · 18 min read

This article explains Python tuples, covering their definition, creation syntax, single‑element nuances, indexing and slicing behavior, and how to modify values indirectly by converting to a list, complete with code examples and visual illustrations.
IndexingSlicinglist conversion
0 likes · 5 min read

This article explains ClickHouse's four composite data types—Array, Tuple, Enum, and Nested—detailing their definitions, type inference rules, practical SQL examples, and common pitfalls to help developers model complex data structures efficiently.
ClickHouseComposite TypesEnum
0 likes · 9 min read

This article explains the Stage‑1 JavaScript Record & Tuple proposal, showing how the new immutable value types are created with a leading #, how they differ from objects by using value‑based comparison, and why they improve deep equality, sharing, non‑destructive updates, and usage in Maps and Sets.
ECMAScriptImmutablerecord
0 likes · 10 min read

This article introduces Python’s core data structures—lists, tuples, and dictionaries—explaining their definitions, indexing, slicing, iteration, modification, and common operations, and provides clear code examples for creating, accessing, updating, and deleting elements, helping beginners deepen their programming fundamentals.
ListPythondata structures
0 likes · 13 min read

This article explains Python tuples, contrasting them with lists, covering their immutable nature, how they enable functions to return multiple values, performance advantages, creation syntax, updating via slicing, deletion, and membership operations, all illustrated with clear code examples.
Immutablecodingtuple
0 likes · 6 min read

This article explains Python tuples as immutable ordered collections, covering their creation, indexing (including negative indices), slicing with optional stride, concatenation and replication operators, and useful built‑in functions such as len, max, and min, while contrasting tuples with lists.
ImmutableIndexingPython
0 likes · 8 min read

This article explains Groovy's immutable Tuple classes, shows how to create and use Tuple, Tuple2, Tuple3, and demonstrates their read‑only behavior with practical code examples, highlighting why they are ideal for returning multiple values from methods.
BackendGroovyImmutable
0 likes · 4 min read


ITPUBDec 11, 2019 · Fundamentals
This tutorial explains Python tuples—immutable sequences—covering their characteristics, creation, common operations, and why they are essential for dictionary keys and function returns, while providing clear code examples and guidance for effective use.
Immutable Sequencetuple
0 likes · 5 min read

This guide explains Python's core collection types—lists, dictionaries, tuples, and sets—detailing their characteristics, creation methods, and common operations such as indexing, slicing, merging, sorting, and set algebra, with clear code examples for each.
ListPythonbasics
0 likes · 14 min read

This article introduces Python 3 tuples as immutable ordered collections, explains how to create, index, slice, concatenate, and replicate them, and demonstrates built‑in functions such as len, max, and min while comparing tuples with lists and showing conversion techniques.
ImmutablePythonSlicing
0 likes · 9 min read

This article explains Python's range() function, detailing its return type differences between Python 2 and 3, syntax variations, parameter meanings, and provides multiple code examples illustrating usage with various start, stop, and step values, as well as converting the result to lists or tuples.
ListPythoniteration
0 likes · 3 min read

This tutorial explains Python tuples and dictionaries, covering their definitions, creation methods, immutable and mutable characteristics, common operations, built‑in functions, and practical code examples that demonstrate indexing, slicing, unpacking, method usage, such as adding, updating, copying, and iterating.
Pythondictionarytuple
0 likes · 10 min read

An in‑depth Python tutorial explains the definition, manipulation, and common pitfalls of lists and tuples, covering basic operations, indexing, adding/removing elements, nested structures, immutability nuances, and practical examples illustrated with clear diagrams.
ListPythontuple
0 likes · 8 min read
