My ceaser cipher encoder isn’t working properly? | Sololearn: Learn to code for FREE!

+1

My ceaser cipher encoder isn’t working properly?

https://code.sololearn.com/W35vzm7WNi6p/?ref=app I can’t figure out what’s broken, the first few letters of the alphabet shift perfectly but other letters shift to random letters? You’re able to choose a key number to shift the letters and input the unencrypted text (caps only) Any help would be great thanks

12/24/2021 3:42:03 PM

Alex

1 Answer

New Answer

+3

User input value returns a string. You need to convert shift to an int.