Week 6 Chapter 7 Flashcards

1
Q

In Python if you make two variables equal. Do they have to stay that way?

A

No they don’t

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

What is multiple assignment

A

It’s when you make more than one assignment to the same variable

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

Is assignment operation a statement of equality

A

No it isn’t

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

If values of variables change frequently what can happen?

A

Code can be hard to read and debug

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

What is an update in multiple assignments ?

A

New value of variable depends on the old

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

What does the comma do at the end of a statement?

A

Suppressed the new line

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