main_string = "Python is versatile" substring = "versatile" contains_substring = substring in main_string print(f"Main String: '{main_string}'\nContains Substring: {contains_substring}")
Output:
Main String: ‘Python is versatile’
Contains Substring: True