Why is my code rejected? I believe it's 💯% correct! (SOLVED) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is my code rejected? I believe it's 💯% correct! (SOLVED)

It's from a challenge "extra terrestrials" https://code.sololearn.com/cmG14rRZ7v1c/?ref=app

24th Sep 2020, 11:40 AM
Hilary
Hilary - avatar
3 Answers
+ 3
What happens if len == 0?
24th Sep 2020, 11:44 AM
Dennis
Dennis - avatar
+ 2
Not all characters are printable, so even though you can't see the difference, the computer can.
24th Sep 2020, 12:02 PM
Dennis
Dennis - avatar
0
Hah 😅 Dennis, you nailed it, I didn't even notice!
24th Sep 2020, 12:05 PM
Hilary
Hilary - avatar