lab 8 notes Flashcards

(5 cards)

1
Q

define the for loop

A

an iterative control structure which determines the execution of a portion of a program, repeated for a defined number of times

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

does python assign values to the alphabet

A

YES. ‘z’

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

note input function also has characteristic to not include the last digit listed

A

this means if we have input(‘100’), we go up to 99

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

meaning of \t

A

inserts tab

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

meaning of \n

A

inserts new line

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