if Region != " " & State != " " & Sku != " ":
TypeError: unsupported operand type(s) for &: 'str' and 'str'
for single string I got it, but for multiple it shows above error
Thanks in advance
if Region != " " & State != " " & Sku != " ":
TypeError: unsupported operand type(s) for &: 'str' and 'str'
for single string I got it, but for multiple it shows above error
Thanks in advance
As DeepSpace points out, your strings are not empty. Consider:
if Region.strip() != "" and State.strip() != "" and Sku.strip() != "":
Also, you may want to use lower case variable names, as it is considered good practice.
In python, you can evaluate strings as a boolean. It returns True if its no empty and it returns True if its empty. So you have to code this:
if not Region and not State and not Sku: