Share

Q. What will be the output of the following code snippet?
my_list = [1, 2, 3, 4, 5]
reversed_list = my_list[::-1]
print(reversed_list)

 

 Q. What will be the output of the following code snippet?
my_list = [1, 2, 3, 4, 5]
reversed_list = my_list[::-1]
print(reversed_list)Continue reading on Medium » Read More Python on Medium 

#python

By