Detailed Answers.
reverse list in Python correct answers [::-1]
join list in Python correct answers ''.join([list])
return the largest integer not greater than x correct answers math.floor()
return the smallest integer not less than x correct answers math.ceil()
python round call correct answers round(x, 2); first argument is the number and the second
argument is the precision after the decimal point
list comprehension with if-else statement correct answers [f(x) if condition else g(x) for x in
sequence]
list comprehension with if statement correct answers [f(x) for x in sequence if condition]
create a tuple correct answers tuple((x, y, z)) OR (x, y, z)
get index in list comprehension correct answers [i for i, x in enumerate(L) if x <= threshold]
check if list (L) is empty correct answers if not L:
get unique values in list [1, 1, 2, 3, 3, 4] correct answers set([1, 1, 2, 3, 3, 4])
get first item in list of lists (lst) correct answers [item[0] for item in lst]