Aug-20-2020, 03:29 PM
Sorry very basic just starting out. is there a way to improve this. I was able to get it to work, but is there a better way to code it? Thanks.
x = 4 y = 5 if x != 4 and y != 5: print('x != 4, y != 5') elif x == 4 and y == 5: print('x = 4 y = 5') elif x != 4 and y == 5: print('x != 4, y = 5') elif x == 4 and y != 5: print('x = 4, y != 5')