Somebody help me fix my code please! I don't know why it's not working! | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Somebody help me fix my code please! I don't know why it's not working!

It's a problem in the community section named "Text Decompressor". Here's my code :-------------------> https://code.sololearn.com/c3y5VVb8OAl2/?ref=app

19th Jul 2023, 2:48 PM
Vaibhav Pandey
20 Réponses
+ 9
Vaibhav Pandey , Try this one i modified your code a Lil.. And can't figure out what error in your code exactly.... https://code.sololearn.com/cNkxdFjTn2R6/?ref=app
19th Jul 2023, 4:12 PM
Riya
Riya - avatar
+ 6
Vaibhav Pandey , My code works only for digits and alphabets that why it is not working since the problem statement have special characters too...
19th Jul 2023, 3:46 PM
Riya
Riya - avatar
+ 4
Vaibhav Pandey does this make any sense? for i in range(len(let)): print(let[i] * new_num[i], end="")
19th Jul 2023, 4:24 PM
Chris Coder
Chris Coder - avatar
+ 2
Your code is working. Did you change anything?
19th Jul 2023, 3:39 PM
Chris Coder
Chris Coder - avatar
+ 2
Interesting let me know if the issue pops up again.
19th Jul 2023, 3:41 PM
Chris Coder
Chris Coder - avatar
+ 1
Ensure that each letter is multiplied by the correct number, regardless of repeated letters or numbers.
19th Jul 2023, 3:54 PM
Chris Coder
Chris Coder - avatar
+ 1
Riya Chris Coder Thanks to all of you i fixed my code now it's working!
19th Jul 2023, 4:27 PM
Vaibhav Pandey
+ 1
Vaibhav Pandey Awesome! Happy Coding!
19th Jul 2023, 4:36 PM
Chris Coder
Chris Coder - avatar
+ 1
The error lies in the 15 the 15 th line of your code
20th Jul 2023, 11:13 AM
Sheriff Saheed
Sheriff Saheed - avatar
0
Riya Thank you but the code is not working and could you tell me why my code is not working ,i can't find any error in it.
19th Jul 2023, 3:20 PM
Vaibhav Pandey
0
Riya Na it's still not working!!
19th Jul 2023, 3:35 PM
Vaibhav Pandey
0
Thank you bro
19th Jul 2023, 3:39 PM
Vaibhav Pandey
0
Chris Coder No nothing
19th Jul 2023, 3:41 PM
Vaibhav Pandey
0
Chris Coder My code is not working bro and i didn't change anything
19th Jul 2023, 3:42 PM
Vaibhav Pandey
0
Chris Coder The test case 3 and 5 are not passing
19th Jul 2023, 3:43 PM
Vaibhav Pandey
0
Riya Yeah but mine works for all of them so what's the problem here??
19th Jul 2023, 3:47 PM
Vaibhav Pandey
0
Chris Coder okay i will see that
19th Jul 2023, 3:55 PM
Vaibhav Pandey
0
Hello every, just me i dont know gow to us it bt can u help me i need your help guys
20th Jul 2023, 10:59 AM
Waheed Muhammed
Waheed Muhammed - avatar
0
Once you remove the bracket at the end of line 15, it works very well
20th Jul 2023, 1:10 PM
Kengne Mbah Johann Briz
Kengne Mbah Johann Briz - avatar
20th Jul 2023, 3:31 PM
Vaibhav Pandey