I am new to Python so please bear me and see my problem and help me to solve my problem.
Here I just tried to Reverse a list using reverse() method. But I left with confusion after seeing the outputs.
Here are the ways what I tried.
a=[2,3,4,5,6]
a.reverse()
print(a) #print1
print(a.reverse()) #print2
b=a.reverse()
print(b) #print3
Output for the above code is:
[6, 5, 4, 3, 2]
None
None
Here I don't understand why I am getting None as output for print2 and print3