1 - Conditional Statements

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

conditional statements

instructions that let your program make decisions based on certain conditions

2
New cards

conditional statements

also known as decision-making statements

3
New cards

if statements

if-else statements

elif statements

nested if statements

types of conditional statements

4
New cards

if statements

execute code only when a specific condition is true

5
New cards

if-else statements

choose between two different actions based on a condition

6
New cards

elif statements

test multiple conditions in sequence for complex decision-making

7
New cards

nested if statemen

create layered conditions where one depends on another

8
New cards

indentation

spaces or tabs at the beginning of a line of code – required rule

9
New cards

shorthand if statement

when you only need to run one line of code if the condition is true

10
New cards

detailed decision-making

dependent conditions

structured logic

why use nested if statements?