If you are using python 3, then you can use F-string. Here is an example
record_variable = 'records'
print(f"The element '{record_variable}' is found in the received data")
in this case, the output will be like:
he element 'records' is found in the received data