Print a name from the end to the beggining

Hi!
I want to create a programme that asks a name and then returns it from the end to the begging. For example: if the name is Peter and the programme writes reteP.
I wrote:
name = input (“what is your name?:”)

for i in range (-1, -len(name)):
print (name[i])

But it does not work (it does nothing except asking the name). I suppose the programme has to read name [-1], name [-2]…name[-len]. I think the problem is in the

I can see what you are trying to do. However, Python has a great syntax for this, called string slicing. You can read about it and view an example of reversing a string with slicing. You can do it with one single line of code!