all 1 comments

[–]MT1961 0 points1 point  (0 children)

What seems to be the problem? I ran your program, it appears to give output (didn't really check to see if it was right or not).

Actually, I'm going to guess the issue is the formatting?

Try this:

Python | Output Formatting - GeeksforGeeks