String Formatting

  • + 2 comments

    Dear @brycefury, i have executed your code in python 2 but it is giving me the below error. Please help me what mistake i have done.

    Traceback (most recent call last): File "solution.py", line 14, in print_formatted(n) File "solution.py", line 3, in print_formatted STDIN = int(raw_input()) EOFError: EOF when reading a line