How to print out to stdout

When debugging and in python string reverse program to print statement calls itself