January 2020 Flashcards

1
Q

python multi line comment

A

use: “”” comment… “””

The triple quotes are technically docstrings, but they can be used as a multiline comment.

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

python string formatting (for debugging)

A
a = "jim"
b = "worm"
test = "this is {0} and he is a {1}".format(a, b)
print(test)
#"this is jim and he is a worm"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

exit process in python

A

exit()

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