Tagged articles
sorted
14 articles · Page 1 of 1
This article explains Python reduction functions—such as all, any, sum, max, min, and reduce—detailing their core behavior, special cases, performance tricks, practical parameters, and real‑world usage examples like password validation and data streaming.
Python__all__any
0 likes · 6 min read

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.
Code Exampleslist.sortprogramming fundamentals
0 likes · 6 min read

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.
Sumbuilt-in-functionsenumerate
0 likes · 7 min read

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.
list.sortprogramming fundamentalssorted
0 likes · 7 min read

This guide explains the differences between Python's list.sort method and the sorted function, covering their syntax, parameters, performance nuances, and practical examples such as ascending/descending order, custom key functions, and creating sorted copies without altering the original list.
Code ExamplesPythondata structures
0 likes · 7 min read

Explore the versatile sorted() built‑in in Python through over ten practical examples, covering basic list and string sorting, custom key functions, reverse ordering, composite criteria, and real‑world use cases like sorting dictionaries and word‑frequency analysis, empowering you to write cleaner, more efficient code.
Pythondata sortingexamples
0 likes · 6 min read

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.
Pythonbuilt-in functionsenumerate
0 likes · 3 min read

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

This article walks through Python’s built‑in sorted() function, covering basic ascending and descending sorts, custom key functions for sorting complex iterables like lists of dictionaries, and using filter() to extract items, all illustrated with clear code examples and screenshots.
Code Examplesfilterlambda
0 likes · 5 min read

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.
LoopsPythonenumerate
0 likes · 7 min read

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.
basicsfunctional programmingsorted
0 likes · 5 min read

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.
Listcustom comparatorsort
0 likes · 4 min read

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

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
