a = 10
b = 20
c = 30
if(a > b,c):
    print('In if')
else:
    print('In else')
Someone posted the above piece of code, and asked why the above always results in 'In if', being printed regardless of the values of b and c.
Although this seems like poor programming style, I am curious what the , operator is doing.
I have not been able to find an answer in the documentation so far. Can anyone provide an explanation ?
 
     
     
     
    