Which code will be more efficient :
list = [1,2,3,4,5]
print(reverse(list))
print(list[::-1])
Or is there any other more efficient method to reverse a list?
Which code will be more efficient :
list = [1,2,3,4,5]
print(reverse(list))
print(list[::-1])
Or is there any other more efficient method to reverse a list?