I have searched for a really basic explanation on what the %len does when trying to loop over a list.
This is an example of the code. What I am trying to do it to print each of the letters in the list giving a starting point. In this example I have just set it to 0. The idea is that I am going to create a cypher shift program. I know loads of people have given answers to the cypher but I just don't understand what the %len does and what I am doing that it wont work in this example.
Thanks a million in advance!
alphabet = list("abcdefghijklmnopqrstuvwzyz")
count = 0
for i in range (100):
print (alphabet[i]%len(alphabet))