Tag

sorted

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Apr 22, 2025 · Fundamentals

Master Python’s sort vs sorted: When and How to Use Each Efficiently

This article explains the differences between Python's list.sort method and the built‑in sorted function, covering their syntax, parameters, performance nuances, and practical code examples for ascending, descending, and custom key sorting.

Pythoncode exampleslist.sort
0 likes · 6 min read
Master Python’s sort vs sorted: When and How to Use Each Efficiently
Test Development Learning Exchange
Test Development Learning Exchange
Jan 22, 2025 · Fundamentals

Common Python Built-in Functions: len, sum, max/min, sorted, enumerate, zip, map, filter

This article introduces essential Python built-in functions such as len, sum, max/min, sorted, enumerate, zip, map, and filter, explaining their syntax, providing practical examples, and offering best‑practice tips for effective use in everyday programming.

Filterbuilt-in-functionsenumerate
0 likes · 7 min read
Common Python Built-in Functions: len, sum, max/min, sorted, enumerate, zip, map, filter
Python Programming Learning Circle
Python Programming Learning Circle
Jul 13, 2024 · Fundamentals

Understanding Python's list.sort() Method and sorted() Function

This article explains how Python's list.sort() method sorts a list in place, how the built‑in sorted() function returns a new sorted list for any iterable, and demonstrates various parameters, custom key functions, and practical code examples for effective sorting.

Pythonlist.sortprogramming fundamentals
0 likes · 7 min read
Understanding Python's list.sort() Method and sorted() Function
Test Development Learning Exchange
Test Development Learning Exchange
Mar 16, 2024 · Fundamentals

Python Built-in Functions and Utilities

This article introduces 10 essential Python built-in functions and utilities including enumerate(), zip(), filter(), map(), sorted(), functools.partial(), itertools.combinations(), lambda, getattr()/setattr(), and reversed(), with practical code examples for each.

Filterbuilt-in-functionsenumerate
0 likes · 3 min read
Python Built-in Functions and Utilities
Python Programming Learning Circle
Python Programming Learning Circle
Mar 1, 2024 · Fundamentals

Understanding Python Higher‑Order Functions: map, filter, sorted, reduce and Practical Examples

This article explains what higher‑order functions are in Python, introduces the commonly used map, filter, sorted and reduce functions, demonstrates their usage with clear code examples, and provides exercises for applying these concepts to real‑world data processing tasks.

FilterFunctional ProgrammingHigher-order Functions
0 likes · 8 min read
Understanding Python Higher‑Order Functions: map, filter, sorted, reduce and Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
May 5, 2020 · Fundamentals

Advanced Loop Techniques in Python: zip, range, filter, enumerate, and sorted

This article introduces several Python iteration tricks—including zip for parallel loops, C‑style range loops, filter for selective processing, enumerate for indexed iteration, and sorted for ordering data—providing concise code examples that make loops more efficient and readable.

FilterPythonenumerate
0 likes · 7 min read
Advanced Loop Techniques in Python: zip, range, filter, enumerate, and sorted
Python Programming Learning Circle
Python Programming Learning Circle
Mar 23, 2020 · Fundamentals

Understanding Python’s map, reduce, filter, and sorted Functions

This article explains how Python’s built‑in higher‑order functions map, reduce, filter, and sorted work, providing clear examples that demonstrate applying functions to iterables, accumulating results, filtering sequences, and customizing sorting with key and reverse options.

FilterFunctional Programmingbasics
0 likes · 5 min read
Understanding Python’s map, reduce, filter, and sorted Functions
Python Programming Learning Circle
Python Programming Learning Circle
Feb 5, 2020 · Fundamentals

Master Python List Sorting: sort() vs sorted() and Custom Comparisons

This guide explains Python's list sorting methods, showing how the in‑place sort() works, how to obtain sorted copies with slicing or the sorted() function, and how to use custom comparison functions and optional key and reverse parameters for flexible ordering.

Pythoncustom comparatorlist
0 likes · 4 min read
Master Python List Sorting: sort() vs sorted() and Custom Comparisons
Test Development Learning Exchange
Test Development Learning Exchange
Aug 1, 2018 · Fundamentals

Understanding Python's sorted() Function and Its Differences from list.sort()

This article explains how Python's built‑in sorted() function sorts any iterable and returns a new list, contrasts it with the in‑place list.sort() method, and demonstrates usage of key functions, reverse ordering, and multi‑dimensional sorting with code examples.

Iterablekey functionlist.sort
0 likes · 5 min read
Understanding Python's sorted() Function and Its Differences from list.sort()
Test Development Learning Exchange
Test Development Learning Exchange
Jul 12, 2018 · Fundamentals

Python built‑in functions: sorted, eval, and upper – syntax, parameters, and practical examples

This article explains how to use Python's sorted, eval, and upper built‑in functions, covering their syntax, optional arguments such as key, cmp, and reverse, safety considerations for eval, and concrete code examples that demonstrate sorting lists, converting strings to uppercase, and evaluating literals.

coding tutorialevalfundamentals
0 likes · 6 min read
Python built‑in functions: sorted, eval, and upper – syntax, parameters, and practical examples