0

Why my code doesn't work?

What is the error? https://code.sololearn.com/cTIEbJzWZgw9/?ref=app

30th Apr 2019, 5:30 AM
MoroGajima
MoroGajima - avatar
4 Answers
+ 3
[()] is a generator expression inside a list. Remove the inner ()
30th Apr 2019, 5:47 AM
Anna
Anna - avatar
+ 2
line 14 in your code: print("Result - {}".format(len(res)) is missing a closing “)” at the end of the line. Do it like this: print("Result - {}".format(len(res)))
30th Apr 2019, 6:49 AM
Lothar
Lothar - avatar
+ 1
You don't need the "str" function to convert your input to a string. The input is always a string by default. So text = input('enter your text here').
30th Apr 2019, 8:12 AM
Dragos
Dragos - avatar
0
Thx
30th Apr 2019, 6:07 AM
MoroGajima
MoroGajima - avatar