Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Enumerate also automatically iterates through each of the digits, so you don't need to cast the number to a string, and loop through each letter (like I did lol).
I did:
str_number = str(number)
digit_list = []
for digit in range(0, len(str_number)):
digit_list.append(int(str_number[digit]))
and then enumerated through that digit_list, but the "enumerate(str(n))" in
for i, c in enumerate(str(n)):
gives you access to each digit in the number as a string in a much more elegant way.