def remove_first(some_list, element):
Why there is no need to write return in this case? or this is just a typo.
Am I missing something?
this is because
remove does the job “in-place”. The function modifies the list that you’re passing as parameter and you don’t need to return it.
thanks for explaining this!