```
def double_list(x):
for i in range(0, len(x)):
x[i] = x[i] * 2
return x
```

why we have to return the new list? why it is giving the error when there is no return statement

def double_list(x):

for i in range(0, len(x)):

x[i] = x[i] * 2