My code works for a single word, but if I try to input a sentence, it output the encrypted text without any spaces or punctuation. How to use the function "ispunc" to solve the problem?


Maybe instead of that, you should be thinking about what the code should do if something is not alpha, when not to encode something, and what to do with a character when it isn't encoded, regardless of what kind of non-alpha it is.


You must log in to answer this question.

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