Skip to content

Instantly share code, notes, and snippets.

@amulyakashyap09
Created December 30, 2017 06:35
Show Gist options
  • Save amulyakashyap09/a0194b9fe443385c190dbff93473a0b9 to your computer and use it in GitHub Desktop.
Save amulyakashyap09/a0194b9fe443385c190dbff93473a0b9 to your computer and use it in GitHub Desktop.
Print N times in Same line | Hackerrank
if __name__ == '__main__':
n = int(input())
# print(*range(1, n+1))
for i in range(1, n+1):
print(i, end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment