How to remove all occurences of a specific value in Python list?

Hey, I’m trying to create a function that works somehow like this:

>>> remove_vals([7, 6, 8, 9, 2, 2, 0], 2)
[7, 6, 8, 9, 0]

It takes two arguments: a list and an integer. Can anyone provide me with the code snippet for this? Or is there any in-built Python function that does this?