Jun-16-2020, 11:55 AM
p1=1 p2=0 p3=0 p4=0 pins=[p1,p2,p3,p4] for value in pins: if value == 1: print("true") else: print("none")
Output:true
none
none
none
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags