Reverse the Order of Elements in Array using Python

reverse method

data = [10, 3, 17, 50, 15]
data.reverse()

print(data)

Leave a Comment

Cancel reply

Your email address will not be published.