Secret message python

What's wrong with my code? I'm sorry if I use a lot of lines but I'm at the beginning of coding. Thank for everyone who will help me. https://code.sololearn.com/ckzi6QdweW2a/?ref=app

31st Mar 2020, 3:56 PM
Marco Artizzu
3 Answers
+ 2
Sorry, I've posted the old version. I've already modified it but it doesn't pass 3 tests. this is the last version that can manage more than one space. https://code.sololearn.com/c5vkosOSEimB/?ref=app
1st Apr 2020, 6:33 AM
Marco Artizzu
+ 1
Ok, this version works! I've copied the wrong version so it doesn't pass the test! Thanks
1st Apr 2020, 6:37 AM
Marco Artizzu
1st May 2020, 4:15 AM
Yaswanth - avatar