you can do just
if 1 in pins: print('true') else: print('none')or even better
if any(pins): print('true') else: print('none')the best would be
print(any(pins))Note that having a name for each pin is not best practice
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs