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.
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)
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?
4
Q
unary
A
5
Q
true or false string how will it look like
A
assign a value dont forget to put print infromt of (x == 5)
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
7
Q
A