Home
Explore
Exams
Search for anything
Search for anything
Login
Get started
Home
CPTR Test 2
Studied by 0 people
0.0
(0)
Add a rating
View linked note
Learn
A personalized and smart learning plan
Practice Test
Take a test on your terms and definitions
Spaced Repetition
Scientifically backed study method
Matching Game
How quick can you match all your cards?
Flashcards
Study terms and definitions
Get a hint
Hint
Variable
Get a hint
Hint
A named storage location in memory that can hold a value.
Get a hint
Hint
Conditional Statement
Get a hint
Hint
A statement that executes different actions based on whether a specified condition evaluates to true or false, often using 'if', 'elif', and 'else'.
1 / 11
There's no tags or description
Looks like no one added any tags here yet for you.
12 Terms
View all (12)
Star these 12
1
Variable
A named storage location in memory that can hold a value.
New cards
2
Conditional Statement
A statement that executes different actions based on whether a specified condition evaluates to true or false, often using 'if', 'elif', and 'else'.
New cards
3
Loop
A control structure that repeats a block of code as long as a specified condition is met, such as 'while' and 'for' loops.
New cards
4
Break Statement
A statement used to exit a loop prematurely.
New cards
5
Continue Statement
A statement that skips the current iteration of a loop and continues with the next iteration.
New cards
6
Range Object
An object that represents a sequence of numbers, commonly used in 'for' loops to iterate over a sequence.
New cards
7
Function
A reusable block of code that performs a specific task; defined with the 'def' keyword.
New cards
8
Parameter Passing
The process of providing input to a function when calling it, which allows the function to use these inputs within its body.
New cards
9
Global Variable
A variable defined outside of any function that can be accessed from anywhere in the code.
New cards
10
Local Variable
A variable defined within a function that is only accessible within that function.
New cards
11
Recursion
A programming technique where a function calls itself in order to solve a problem.
New cards
12
Default Argument
A parameter value provided in a function definition that can be used if no argument is supplied during the function call.
New cards