def decrypt(cipher.text):
for shift_num in range (26):
answer="
for char in cipher_text:
if not(65 <= ord(char) <=D 90 or 97 <%3ord(char)<3D 122):
answer+= char
elif ord(char)-shift_num<65:
answer+=chr(ord(char)-shift_num+26)
elif ord(char)-shift_num<97 and ord(char)>%397:
answer+=chr (ord(char)-shift_num+26)
else:
answer+=chr (ord(char)-shift_num)
wernt stshift_nnlで複会tanswer).
Angou="Au1aYauná0a x á6x1aVxUaèaUUY1×7a1axTaa0a × io0xaua ×TédiiYa×1ayxfaá1Yeay!"
decrypt(Angou)
Traceback (most recent call last)
TypeError
<ipython-input-38-c1dd64f6df7f>in <nodule>()
23.
24 Angou="A01aYa0ia0gxaる×1ayxUaeaU0Y) ×Táia×Tàá0à×.i¢0×aU8xréál1Yax1ay×I@áYeay;'
> 25 decrypt(Angou)
<ipython-input-38-c1dd64f6df7f> in decrypt (cipher_text)
20
else:
answer+=chr(ord(char)-shift_num)
print("鍵"+ str(shift_num) +"で複合→"+answer)'"
21
22
23.
24 Angou="AU1aYaUra08 xa6×1ayxUeaUUYI× Tálà× Tàa0a × &c0×aue× Téál1 Ya×1aYxfadi Veay!*
TypeError:'くtr' object is not, callable