Anonymous user
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}}==
|