Reverse-User-Input-City

Sat 17 May 2025

title: "Reverse User Input" author: "Rj" date: 2019-04-20 description: "-" type: technical_note draft: false


def reverse_string(content):
    return content[::-1]
city = input("Enter Your City : ")
Enter Your City : Toronto
reverse_string(city)
'otnoroT'

Score: 0

Category: basics