human
Use of findall and parenthesis in Python
assistant
Here is some code to find all words containing letters between A and Z in string `formula`

re.findall('\\b[A-Z]', formula)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.