1 vote
Accepted

I'm confused on list setup and use for vigenere.py

ord(key_arr[key_index % key_length] - 97) needs to be ord(key_arr[key_index % key_length]) - 97, performing the subtraction after conversion to ASCII value. You should check len(argv) before ...
user avatar
  • 20.7k
1 vote
Accepted

pset6 vigenere.py the program show error online 25. Help me to get rid of this error please. Thank you

Would have been nice if you had marked what is line 25 to you. In that code, where do you set keylen? The inner/nested function definition should go to the top of the function, or outside, even ...
user avatar
  • 20.7k
1 vote

CS50 2017 Vigenere Python "IndexError: list index out of range"

IndexError probably means that you are trying to access an element in a list that doesn't exist. This particular problems refers to, on line 28, that you are trying to read an index in ciphertext ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible