How to print Reverse string

please tell me how can i print reversed string with loop
i tried it
*code
a = “coding”
for i in range(len(a),1,-1 ) :
print(a[i])

my code is throwing error : index out of range!

print(a[len(a)::-1])
You can use just above 1 line to reverse any string.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.