My program asks for an input from the user, but I want to reject any multiples of 26 (or if 0 is entered) and ask for the user to input again. I can't figure out how to do this; I'm guessing it's something to do with dividing the input by 26 and getting an integer.
The current code is:
ValidInput = False
while ValidInput == False:
try:
Key = int(input('Enter the amount that shifts the plaintext alphabet to the ciphertext alphabet: '))
except:
print("Sorry, that isn't an integer. ")
else:
ValidInput = True
return Key