<filename>5_Pham_Ngo_Tien_Dung/2.2.py<gh_stars>0
# Write function that reverses a list, preferably in place.

def reverse_list(a):
    a.reverse()
    return a


mylist = [1, 5, 3, 7, 8]
print(reverse_list(mylist))

<filename>5_Pham_Ngo_Tien_Dung/2.2.py<gh_stars>0
# Write function that reverses a list, preferably in place.

def reverse_list(a):
    a.reverse()
    return a


mylist = [1, 5, 3, 7, 8]
print(reverse_list(mylist))

# Write function that reverses a list, preferably in place.