Input should be "one two three" and output should be "three two one".
I tried this but didn't work
s="One Two Three"
ori=s.split(" ")
print(ori)
rev=ori.reverse()
print(rev)
Input should be "one two three" and output should be "three two one".
I tried this but didn't work
s="One Two Three"
ori=s.split(" ")
print(ori)
rev=ori.reverse()
print(rev)