python Flashcards

1
Q

Python is a dynamically-typed language. What does that mean?

A

which means you don’t need to declare variables in it.

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

compound assignment operators what are they and what do they do?

A

modify values assigned to variables, e.g., var += 1, or var /= 5 * 2. (2.1.4.8)

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

How do quickly comment or uncomment multiple lines of code?

A

select the line(s) you wish to modify and use the following keyboard shortcut: CTRL + / (Windows) or CMD + / (Mac OS). It’s a very useful trick, isn’t it?

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

unary

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

true or false string how will it look like

A

assign a value dont forget to put print infromt of (x == 5)

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

To find the largest number of all, you can use a Python built-in function called?

A

max() and min() for the lowest

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