I've been seeing the % sign in python tutorials but they're not using it like modulo.
This is the code from Python app tutorial:
message = 'GIEWIVrGMTLIVrHIQS' #encrypted message
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
for key in range(len(LETTERS)):
translated = ''
for symbol in message:
if symbol in LETTERS:
num = LETTERS.find(symbol)
num = num - key
if num < 0:
num = num + len(LETTERS)
translated = translated + LETTERS[num]
else:
translated = translated + symbol
print('Hacking key #%s: %s' % (key, translated))
This line:
print('Hacking key #%s: %s' % (key, translated))
I don't also know the # sign and the s, I am thinking they're regular expression but they didn't import regular expression