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