What is the purpose of the "sorted" function?
Sorts
1 == 2 and 2 == 2
False
Which standard Python library provides the "log" function?
math
What is the purpose of the "type" function?
gives you the type of the object
e.g. type(3) is <class 'int'>
3.0 // 3 + 3 % 2
2.0
Convert the binary number 1010 to decimal.
10
What is the purpose of the "id" function?
Returns the identity of an object
max([1,2,3], key=lambda x: 1/x)
1
What does CPU stand for?
Central Processing Unit
What is the purpose of the "zip" function?
Aggregates elements from multiple iterables into a single iterator of tuples
"running"[:2:-2]
"gi"
Name 2 naming conventions with an example of each.
snake_case
CamelCase
ALL_CAPS
What is the purpose of the "enumerate" function?
Allows you to iterate over a sequence and keep track of the index at the same time
(2 or 1 and 0) * "PASS"
"PASSPASS"
ASCII Character represents English letters, digits, punctuation, and control characters. How many standard ASCII characters are there?
128