0
Why my code doesn't work?
What is the error? https://code.sololearn.com/cTIEbJzWZgw9/?ref=app
4 Answers
+ 3
[()] is a generator expression inside a list. Remove the inner ()
+ 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)))
+ 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').
0
Thx