Python Statements Flashcards

1
Q

assignment

A

create a variable and provide a value (object)

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

while

A

more general loop, executes while boolean expression evaluates to true. indefinite iteration

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

for

A

for convenient repetition (iteration) of statements in the loop body. processes each item in a list. definite iteration

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

if

A

conditional

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

import

A

brings in the contents of a module, making its statements and definitions available to the program

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

del

A

deletes elements from lists, dictionaries

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