Write a code to remove a specific value from a list in Python.
mylist = [10, 20, 30, 40, 10]
value = 10
mylist = [10, 20, 30, 40, 10]
value_to_remove = 10

# new list after value is removed
new_list = [item for item in mylist if item != value_to_remove] 

print(new_list)