Starting out with python chapter 5

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/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:36 AM on 7/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Function

A group of statements that exist within a program for the purpose of performing a specific task.

2
New cards

Code reuse

A design technique that helps with reduce the duplication of code within a program and is a benefit of using functions.

3
New cards

Header

The first line of a function definition.

4
New cards

Call it

In order to use a function you have to do this.

5
New cards

Top down design

A design technique that programmers use to break down an algorithm into functions.

6
New cards

Hierarchy chart

A diagram that gives a visual representation of the relationships between functions in a program.

7
New cards

Local variable

A variable that us created inside a function.

8
New cards

Scope

The part of the program in such a variable may be accessed.

9
New cards

Argument

A piece of data that is sent to a function.

10
New cards

Parameter

A special variable that receives a piece of data when a function is called.

11
New cards

Global variable

A variable that is visible to every function in a program file.

12
New cards

Global variable

You should avoid using these variables when possible.

13
New cards

Library function

A prewritten function that is built into the language.

14
New cards

Randint

This standard library function returns a random integer within a specified range of values.

15
New cards

Random

This standard library function returns a random floating point number in the rang of 0.0 up to 1.0 but not including 1.0.

16
New cards

Uniform

This standard library function returns a random float number in a specified range of values.

17
New cards

Return

This statement causesva function to end and sends a value back to the part of the program that called the function.

18
New cards

IPO

This is a design tool that describes the input, peocessing, and output of a function.

19
New cards

Boolean

This type of function returns either true or falsem

20
New cards

Sqrt

Example of a math module function.