You are viewing a single comment's thread. Return to all comments →
Hi, Could you Please what's wrong with this:
n = int(input().strip())
for i in range(n):
noOfSpaces = n - i -1
I don't have Python installed so I can't run it. What is the output you are getting or error message? Why is the "print" statement indented at the same level as "noOfSpaces"?
I am getting one extra space in the start of each line.
For the record, the extra space comes from the comma. Use string concatenation instead: