Python Functions and Argument Passing

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering Python functions, decomposition, syntax, parameters, arguments, shadowing, and argument passing rules from Cisco Networking Academy Module 4 Part 1.

Last updated 5:24 PM on 9/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards
<p>Decomposition</p>

Decomposition

The process of dividing a complex program or problem into smaller, well-isolated pieces implemented as separate functions to simplify encoding, testing, and team collaboration.

2
New cards
<p>Sources of Python Functions</p>

Sources of Python Functions

Functions in Python originate from three main places: built-in functions integrated in Python itself, pre-installed Python modules, and user-defined functions written directly in code.

3
New cards

Built-in functions

Functions that are an integral part of Python and are always available to the programmer without requiring any additional imports or setup (e.g., print()).

4
New cards

User-defined functions

Functions written directly by programmers within their own code to perform specific tasks and be reused freely.

5
New cards

def

The Python keyword used at the beginning of a function definition to declare a new function.

6
New cards

Function body

The block of nested instructions placed directly below the def header line that is executed whenever the function is called.

7
New cards

Parameter

A variable defined between the parentheses in a function's def statement that exists only inside the function and receives values passed upon invocation.

8
New cards

Argument

A value specified outside a function during its invocation that is passed into the corresponding parameter of the function.

9
New cards

Shadowing

A mechanism in Python where a function parameter shadows any external variable of the same name within the body of that defining function.

10
New cards

Positional parameter passing

An argument passing technique that assigns the ithi^{\text{th}} argument to the ithi^{\text{th}} parameter based strictly on their order in the function call.

11
New cards

Keyword argument passing

An argument passing technique where the target parameter name and an = sign precede each passed value, making argument order irrelevant.

12
New cards

Default parameter values

Predefined values assigned to parameters using the = operator in the function definition, used whenever corresponding arguments are omitted during function invocation.

13
New cards

Rule for mixing positional and keyword arguments

An unbreakable Python rule requiring all positional arguments to be placed before any keyword arguments in a function call.

14
New cards

Function invocation execution flow

The process where Python records the invocation location, jumps to execute the function's body, and returns to the line directly after the invocation point once the function finishes.

<p>The process where Python records the invocation location, jumps to execute the function's body, and returns to the line directly after the invocation point once the function finishes.</p>