Hi guys, I'm new to Python and I'd like some answers to get a better understanding of how python works.
In the Reverse exercice (see link above) you have to create a function that takes a string and pints it backwards. My code does so but a "None" gets printed after the last letter of the reversed string is printed.
My output for the code below is : !nohtyPNone
Why does it do that and how to solve it ?
Thanks in advance
from __future__ import print_function def reverse(text): for y in range(-1,(-1*len(text))-1,-1): print (text[y],end='') reverse("Python!")