number = 9;
multiples = int(input())
if(multiples == 0):
print("NULL")
else:
for n in range(1,multiples+1):
result = number*n
print(result, end=" ")
I wrote this with Python, the expected output and actual output are the same but am getting an extra space at last. Please help me to solve the error
Testcase Status:
>>> error
Input:
3
Expected Output:
9 18 27
Actual Output:
9 18 27