with correct answers 100%
reverse list in Python - Correct Answer[::-1]
join list in Python - Correct Answer''.join([list])
return the largest integer not greater than x - Correct Answermath.floor()
return the smallest integer not less than x - Correct Answermath.ceil()
python round call - Correct Answerround(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 Answer[f(x) if condition else g(x) for x in
sequence]
list comprehension with if statement - Correct Answer[f(x) for x in sequence if condition]
create a tuple - Correct Answertuple((x, y, z)) OR (x, y, z)
get index in list comprehension - Correct Answer[i for i, x in enumerate(L) if x <= threshold]
check if list (L) is empty - Correct Answerif not L:
get unique values in list [1, 1, 2, 3, 3, 4] - Correct Answerset([1, 1, 2, 3, 3, 4])