I have this code at the moment.-
code = input("Please enter the code: ")
inst_1 = code.find("(")
inst_2 = code.rfind(")")
print(code[range(inst_1, inst_2)])
I'm trying to get it to print any parts of the input that are typed in between brackets. I've tried using range so that it can print out any input in between the index of the opening and closing brackets but that just returns an error as my inst_1 and inst_2 aren't integers.