I want to split this string def Hello(self,event): so that only Hello is left, the delimiter would first be def and then I guess ():. How can I do this in python?
I want to split this string def Hello(self,event): so that only Hello is left,
Share
I recommend using Regular Expressions for something like this (see the other examples), but to answer your question here is the solution using
split: