Integer sequence: Difference between revisions
Content deleted Content added
→{{header|QBASIC}}: Add two Python solutions |
|||
Line 79: | Line 79: | ||
} |
} |
||
</lang> |
</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}}== |
=={{header|QBASIC}}== |