We use Python 3.6

go back Level: Intermediate (img: IM / score: 3) level Bite 99. Write an infinite sequence generator

17 out of 17 users completed this Bite ...
Will you be Pythonista #18 to crack this Bite?
Average Bite difficulty 1-10 rating: 3.5
» You can do it! 😌

Write a generator that produces the sequence [1, 'A', 2, 'B', 3, 'C', ... 'X', 25, 'Y', 26, 'Z'] infinitely. So once you hit Z you start at 1 again, etc. Maybe itertools can help you here? Have fun!

Github login button