Anonymous user
Super-d numbers: Difference between revisions
m
→{{header|Python}}: name change.
(→{{header|Go}}: Restored Pascal.) |
m (→{{header|Python}}: name change.) |
||
Line 422:
<lang python>from itertools import islice, count
def
if d != int(d) or not 2 <= d <= 9:
raise ValueError("argument must be integer from 2 to 9 inclusive")
Line 432:
if __name__ == '__main__':
for d in range(2, 9):
print(f"{d}:", ', '.join(str(n) for n in islice(
{{out}}
|