Python program that accepts a word from the user and reverse it.
1 Like
word = input(βInput a word to reverse: β)
for char in range(len(word) - 1, -1, -1):
print(word[char], end=ββ)
print(β\nβ)
1 Like