
# def reverse_list(l):
#      l.reverse()
#       return l  
# number = [1,2,3,4]
# print(reverse_list(number))
   
# return l[::-1]
# number=[1,2,3,4]
# print(reverse_list(number))

def reverse_list(l):
    r_list=[]

    for i in range(len(l)):
        popped_item = l.pop()
        r_list.append(popped_item)
    return r_list

number =[1,2,3,4]
print(reverse_list(number))