I implemented the check50 to check the correctness of my vigenere's cipher program and received the following prompt:

:( rejects "Hax0r2" as keyword
\ expected output, not a prompt for input

What has been rejected? I didn't get the meaning of the error.. Please explain.


This particular test is looking to see if your program rejects keywords with non-alphabetical characters. See this line from the pset specs:

This program must accept a single command-line argument: a keyword, k, composed entirely of alphabetical characters.

Add a section to your code that tests this condition (much like testing that argc is exactly 2), and you'll be set.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .