+ 1

How to make infine number print?(Python)

1 2 3 4 5 ....... How to make this?

19th Feb 2022, 1:32 AM
Chris
3 Answers
+ 3
Hi, Yoonsu Kim ! With a generator you can generate and print your next number at any time in the code: https://code.sololearn.com/cGpeiZIhZJ59/?ref=app
19th Feb 2022, 5:06 AM
Per Bratthammar
Per Bratthammar - avatar
+ 1
Like this? num = 0 while num > -1: num+=1 print(num)
20th Feb 2022, 12:42 AM
Junior
Junior - avatar