from itertools import islice def infinite_seq(): n = 1 while True… — Python | Тесты для программистов — TG.ME