Code:
patt = re.compile(r'(f\((.[^)]+)\))')
However, I tried to give it some conditions, like if the left or right part of the f() call contains "+, -, *, /" marks, then replace it with a bracketed one. It only works for the first two call function but it leaves out the third one. I don't know why, I tried to print every...
Leave a comment: