reverse a string

Sai_kiran_rachakonda · October 29, 2022
x = 'python'
y = x[ : : -1]
print(y)
Output

Comments

Please sign up or log in to contribute to the discussion.