Without using any string methods, print 123...N | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Without using any string methods, print 123...N

please explain the above question with neat explanation

8th Nov 2019, 5:42 AM
Sumanth Reddy
Sumanth Reddy - avatar
1 Réponse
0
if __name__ == '__main__': n = int(input()) for i in range(1,n+1,1): print(i,end="")
7th Oct 2022, 3:53 AM
KARTHIKEYAN S