Test Development Learning Exchange
Test Development Learning Exchange
May 25, 2025 · Fundamentals

Master Python Functions: Syntax, Parameters, Defaults, and Advanced Tricks

This guide explains how to define Python functions, the role of return statements, differences between positional and keyword arguments, default‑parameter pitfalls, *args/**kwargs usage, argument unpacking, reference passing semantics, positional‑only/keyword‑only parameters, and anonymous lambda functions, all with clear code examples.

FunctionsLambdaPython
0 likes · 6 min read
Master Python Functions: Syntax, Parameters, Defaults, and Advanced Tricks
ITPUB
ITPUB
Oct 20, 2019 · Fundamentals

Explore Python 3.8: Assignment Expressions, Positional‑Only Params & New Features

Python 3.8 introduces several practical enhancements—including the walrus operator (:=) for assignment expressions, positional‑only parameters marked by '/', runtime audit hooks, f‑string debugging with '=', improved asyncio REPL handling, shared memory support, a built‑in @cached_property decorator, and numerous performance and library updates.

3.8Shared Memoryassignment expression
0 likes · 8 min read
Explore Python 3.8: Assignment Expressions, Positional‑Only Params & New Features