+ 1
How to separate string using multiple delimeters in split ()
2 Respostas
+ 9
Saumya Mishra ,
maybe you are looking for something like this:
e="(2+100)"
res = e.strip('()')
print(res)
we can use the string method strip(), that removes leading and trailing characters from a string.
0
Or combine lstrip and rstrip