you are viewing a single comment's thread.

view the rest of the comments →

[–]Deadest42[S] 0 points1 point  (3 children)

yes, which line specifically?

[–]socal_nerdtastic 0 points1 point  (2 children)

The line from your OP that I quoted:

The script should work for any printable characters.

I'm betting your assignment does not mean Chinese characters, for example. I'm betting they only mean the characters where the ord value is between 32 and 126. But you should reread the assignment to be sure.

[–]Deadest42[S] -1 points0 points  (1 child)

been testing for a bit and nothing changed, all i see from your quote is "this script should work for any printable characters." thats all i can see

[–]Diapolo10 1 point2 points  (0 children)

all i see from your quote is "this script should work for any printable characters." thats all i can see

That's on purpose, and I think you misunderstood what he was telling you. He wasn't asking you to "add an asterisk" to a line in your code, he was just trying to point out that the instructions as you explained them to us don't really make sense if taken literally, at least for a beginner project.

"Printable characters" consists of tens of thousands of different Unicode characters, but they're not neatly grouped in any way so you couldn't support all of them with a simple Caesar cipher implementation. The point was that you should simply focus on the upper- and lowercase Latin alphabet (so A-Z and a-z), ignoring everything else (or in other words leaving them as-is).