Question: Python 3.6: Im not sure what im doing wrong here. I want the code to output None if the letter is not A, B, C,
Python 3.6: Im not sure what im doing wrong here. I want the code to output None if the letter is not A, B, C, D, E, F, G, or H, which it does. But I also want to to do this for the numbers 1 through 8, so if it is not in that range of numbers it will also print none. Just to sum up, If i had the value 'A9' I would want it to print none becasue 9 is out of the range of numbers. I do not understand why my code does not do that, I do not understand what i did wrong or what im missing. 
if letter'A' or letter-'c' or letter'E' or letter'G' if number 1 or number-3 or number5 or number7: color black" elif letter== 'B' or letter='D' or letter=: F' or letter 'H': if number2 or number-4 or number6 or number8: color black" if letter -'A' or letter" 'C' or letters: E' or letter:-'G': if number2 or number-4 or number6 or number8: color white elif letter-'B' or letter'D' or letter-'F' or letter-'H: if number 1 or number3 or number5 or number-7: color 'white' elif letter != 'A' or letter != 'B'or letter != 'C' or letter != 'D' or\ letter "E'or letter'F' or letter!Gor letter - 'H': color- None elif number != 1 or number != 2 or number != 3 or number !=4 or number !=5\ or number -6 or number7 or number-8: color = None
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
