s = 'KDnuggets' print('The reverse of KDnuggets is {}'.format(s[::-1])) # Output # The reverse of KDnuggets is: steggunDK