Answer to Question #321175 in Python for Lokesh

Question #321175

Yes your output is right thank you, but I am sorry I am not expecting this output,



Input: 1



3




Your output: 1



2



3




My expecting output : 1 2 3




Please review

1
Expert's answer
2022-04-08T03:47:29-0400
n = int(input())
for i in range(n):
    print(i+1, end=' ')
print()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS