How can I join multiple strings with logical operators to create a search term with for loop in python
I want to create a search term, depending on the input given. For example, when the user provides the phone number "69420" and name "Karen", the following code: getbools = [f"{phone}" != "", f"{id}" != "", f"{name.replace(‘ ‘, ‘:’)}" != "", f"{email}" != ""] # [1, 0, 1, 0] searches = [f"{phone}", f"{id}", f"{name.replace(‘ ‘,… Read More How can I join multiple strings with logical operators to create a search term with for loop in python