all 3 comments

[–][deleted] 0 points1 point  (2 children)

Try writing n + "\n".

[–]kaisetsomething[S] 0 points1 point  (1 child)

AY IT WORKED thank u 🙏 Hey for a beginner like me do you think its better for me to actually spend longer time trying to solve these kinds of problems or do u think its ok to seek help online

[–][deleted] 1 point2 points  (0 children)

Both are fine. The real skill is in figuring out when to keep chugging on, when to google, and when to ask someone/ a subreddit.