これは、今後の AS コンピューティングの予備コード用にこれまでに編集したコードです。それは宿題であり、なぜうまくいかないのか困っています。助言がありますか?ありがとう
def GetKeyForCaesarCipher():
while True:
key = int(raw_input('Enter the amount that shifts the plaintext alphabet to the ciphertext alphabet: '))
try:
i = int(key)
break
except ValueError:
print 'please enter an interger'
return (key)