Python Program to Reverse a List

num_list=[]
n=int(input("Enter the Starting of the range:"))
k=int(input("Enter the Ending of the range:"))
for i in range(n,k):
num_list.append(i)
print("Original Number List:", num_list)
num_list.reverse()
print("Reversed Number List:", num_list)

Output:
Python Program to Reverse a List