HackerRank- Python Print Function



Problem 7:

Read an integer N and print 123...N



  1. if __name__ == '__main__':
  2. n = int(input())
  3. for i in range(1, n+1):
  4. print(i, end='')

download android app