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.
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"
3
Q
exit process in python
A
exit()