Frameworks 002 Flashcards

1
Q

What are Conditions(similar to boolean)

A

Condititons can be TRUE or FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 3 conditions that are typically used in coding

A

|if|elif|else| OR |if|else if|else|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the better alternative to if statements

A

match case is where you give specific values to a serius of cases where _ acts as the else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does iteration work in list serching

A

iteration work by checking every given option until it finds the one that matches the given one then returns it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you do iteration in coding

A

the ways to implement iteration in coding is by using while and for loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does a for loop do

A

Sets a value and goes thought the code until there is no more values to look for

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does a for loop do

A

Runs until a set condition is met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are nested loops

A

Loops within loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do enumerate()

A

lets you see what iteration you are on at the moment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What do break and continue do in loops

A

stop and continue the loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly