INPUT :
y=["kumar","prakas"]
y.reverse()
print(y)
s=["prakash","surya"]
s.reverse()
print(s)
h=["prasath","arun"]
h.reverse()
print(h)
x=y[ : :-1]
print(x)
f=s[ : :-1]
print(f)
n=h[ : :-1]
print(n)
OUTPUT :
['prakas','kumar']
['surya','prakash']
['arun','prasath']
['kumar','prakas']
['prakash','surya']
['prasath','arun']