In Python, I'd love to add something like const in a function definition, for the arguments, to say that the arguments will not be modified by the function. For example, I would want the following code to somehow return an error
def get_last_element(const my_list):
return mylist.pop()