The code works but as you can see I had to import a module/function, (line 1) in order for the end="" statement to work, i e to print or return the reversed string in one line. I cheated for this line. sorry. Could I have done this differently? Thank you
from future import print_function # this is imported becaause codecademy version of python will not accept an 'end="" ' statement
result = 
for i in range(len(greenfly)-1,-1,-1):# moves he character occupying the 0 index positon to index -1 (the last) position
print (greenfly[i], end="")
result.append(greenfly[i]) # this allows the printing of the reversed string. The code will be accepted without this line
return "".join(result) #this is to remove the quotation marks between characters
word = "testing this"
Replace this line with your code.