HackerRank Print Function Problem Solutions

HackerRank Print Function Problem Solutions

Instructor-svgAl-Mamun Sarkar
Mar 23 , 2020

HackerRank Print Function Problem Solutions. Click here to see the problem.

Code:

from __future__ import print_function

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

Test Input;

3

Test Output:

123
  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram