Programming fundamentalsLesson 4 of 6 in the course Functions
Python Function Parameters, Arguments, and Mutable Inputs
5 flashcards · 4 quiz questions · 5 match pairs · 3 fill-in sentences · English
Lesson progress
0 / 5
Your progress is kept in this browser only.Sign up to save it
Summary
Functions can receive information from the code that calls them. Understanding how that information is passed—and whether a function can change it—is essential for writing predictable Python programs.
A parameter is a variable listed in a function definition. It represents an input that the function can use. An argument is the actual value supplied when the function is called.
All flashcards
Quiz questions
Based on Introduction to Python Programming by Udayan Das, Aubrey Lawson, Chris Mayfield, Narges Norouzi (OpenStax), licensed CC BY 4.0. Adapted into a summary, flashcards and quizzes.
More in Programming fundamentals
All Programming fundamentals lessonsProgramming fundamentalsTracing Conditional and Function-Call Control Flow5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsWhile Loops: Conditions, Counters, and Input-Controlled Repetition5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsPython Loop else: Normal Completion and break5 flashcards · 4 quiz questions · 4 gamesPlay free →Programming fundamentalsVariable Scope: Global and Local Variables in Python5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsPython Function Arguments, Defaults, and PEP 8 Spacing5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsRecursive Cases and Base Cases in Elementary Math Functions5 flashcards · 5 quiz questions · 4 gamesPlay free →