# function to reverse a string
# Author: Dillon Ward (Dillonward2017@gmail.com)
# Date: 25/09/2017

# the user enters a string to be reversed
sentence = input("Enter a sentence/word:")

# the string is reversed and is assigned to 'reversed_string'
reversed_string = sentence[::-1]

# the new reversed string is printed out
print(reversed_string)
# print(sentence[::-1]) can also be printed just like this
