Jump to content

Integer sequence: Difference between revisions

→‎{{header|QBASIC}}: Add two Python solutions
(→‎{{header|QBASIC}}: Add two Python solutions)
Line 79:
}
</lang>
 
=={{header|Python}}==
<lang python>i=1
while i:
print(i)
i += 1</lang>
 
Or, alternatively:
<lang python>from itertools import count
 
for i in count():
print(i)</lang>
 
=={{header|QBASIC}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.