LocationList = ("Switzerland", "Albania", "Montenegro")

Search = "Switzerland"

CountryList = []

for item in LocationList:
    if Search in item:
       CountryList.append(item)


print (CountryList)

def myFunction(x):
    if Search in CountryList
        return x
    print(x)


myFunction()