Variables Flashcards

1
Q

Is Python a dynamic or static typed language?

A

Dynamic

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

How do you do multiple variable assignments on the same line in Python?

A

n, m = 0, “abc”

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

If you want to increment a variable in Python, what are your options?

A

n += 1
n = n + 1

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

True or False: using n++ is valid to increment a variable in Python

A

False

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

What is the null equivalent called in Python?

A

None

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