Suppose listvar to store a list. How to sort the list in descending order?
listvar.sort(reverse=True)
how to search for the position of one element e in the list listvar
listvar.index(e)
How to create a list with the values of a dictionary as entries?
mylist = list(mydic.values())
check if list not empty
an empty list evaluates to False
add elemento to list
list.append(element)