'if else not providing desired output

My conditional function is not working. Where is the issue?

From the below text, if "DFF Manufacturing Company" available, then it will print the name.

DFF  DFF  Manufacturing  Company  QWE  LIMITED 
DFF  Strasse  16  O  Strasse  103 
96032,  Germany  23467,  Germany 

Python code:

if "DFF  Manufacturing  Company" in text.split('\n'):
    print("DFF Manufacturing Company")

Output: No result is showing



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source