Given a string s = "Leonhard Euler"
, I need to find if an element in my surname array is a substring of s. For example:
s = "Leonhard Euler"
surnames = ["Cantor", "Euler", "Fermat", "Gauss", "Newton", "Pascal"]
if any(surnames) in s:
print("We've got a famous mathematician!")