Aug-16-2020, 06:22 PM
Rather than keeping track with another number (so you have something to change in multiple places), you can use the mod operator and the actual array.
Instead of
Instead of
if new_position > 26: new_position = new_position - 27Consider
new_position %= len(alphabet)