Aug-31-2018, 12:16 PM
Reading this code I get little bit confused.
- why you import alphabet_position and then define function with same name?
- why you ask two times for letter?
- is it typo or functions rotate is not indented?
Instead of writing dictionary manually one can let Python create it:
- why you import alphabet_position and then define function with same name?
- why you ask two times for letter?
- is it typo or functions rotate is not indented?
Instead of writing dictionary manually one can let Python create it:
alphabet_pos = {} for i, v in enumerate(zip(range(65, 91), range(97, 123))): alphabet_pos.update({**dict.fromkeys([chr(v[0]), chr(v[1])], i)})It is also not clear what function vigenere_cipher should accomplish.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.