texto = 'bla bla bla (ble ble)' resultado = texto.strip(texto[texto.find("("):texto.find(")")+1]).strip() print(resultado)
Standard input is empty
a bla bla
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!