Back to AI Flashcard MakerEducation /Python Basics – Functions, Conditionals

Python Basics – Functions, Conditionals

Education32 CardsCreated 8 months ago

This flashcard set covers foundational Python programming concepts including functions, parameters, conditional statements (if, else, comparisons), Boolean logic (and, or, not), and syntax correction. Ideal for beginners, it helps reinforce the logic and structure needed to write and debug simple Python programs.

3.1 Lesson Practice
A ____________ is a set of commands which can be run by calling it by name.

function

Rate to track your progress ✦

Tap or swipe ↕ to flip
Swipe ←→Navigate
1/32

Key Terms

Term
Definition

3.1 Lesson Practice
A ____________ is a set of commands which can be run by calling it by name.

function

3.1 Lesson Practice
A _____________ is a piece of information sent to a function.

parameter

3.1 Lesson Practice
Consider the following code:
x = random.randint (1, 100)
The randint is a ____________.

function

3.1 Lesson Practice
Which of the following is NOT a function?

math

3.2 Lesson Practice
For questions 1-3, consider the following code:
What is output if the user types in 9? Click all that apply.

C
D
A

3.2 Lesson Practice
What is output if the user types in 8? Click all that apply

C