I wrote a code that separates the numbers from 1 to 9999 by comma
Is there a way to make this short code without using a repeat statement?
Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It only takes a minute to sign up.Sign up to join this community
main can be used to recurse
i=0 while i<1e5:print(end='%d,'%i);i+=1