Edit the following Python code to give the output as [400, 125, 10,1].
val = [1, 10, 125, 400]
res = []

for v in val:
    res.append(v)
val = [1, 10, 125, 400]
res = []

for v in reversed(val):
    res.append(v)
    
print(res) # Output: [400, 125, 10,1]