Why does `letter==“A” or “a”` always evaluate to True? [duplicate]
问题 This question already has answers here : How to test multiple variables against a value? (24 answers) Closed 5 years ago . Please look at the code. I'm using a robot car to draw a letter and in this code, when I type b, it will still draw small case a. import create # Draw a: def drawa(): #create robot robot = create.Create(4) #switch robot to full mode robot.toFullMode() for i in range(1280): robot.go(20,30) robot.stop() robot.move(-40,20) # Draw b: def drawb(): #create robot robot = create