+ 2

Please tell me what is wrong in this solution of the code coach problem "Balconies"

I just learned lambda functions so I tried to use them here But it throws Value Error -"invalid literal for int() with base 10 : ',' " https://code.sololearn.com/ceEFzu7PRSZF/?ref=app

1st Jan 2023, 5:04 AM
Arin
Arin - avatar
2 odpowiedzi
+ 2
https://code.sololearn.com/ciKRJ6PHTLOH/?ref=app The issue is your use of the list() function, which is creating lists of all characters in the input. See the updated code for possible solutions.
1st Jan 2023, 6:23 AM
Jeremy Miller
+ 1
Jeremy Miller very very thanks for the help brother Now I can fully understand my mistake and have some clearance in the topic
1st Jan 2023, 6:32 AM
Arin
Arin - avatar