Fix enumerate code snippet to run without error message

Code previously added numbers to strings, which results in a TypeError