I don't get some syntax for if statements in python:
>> z=[0 if all([2<3,6<7]) else sth] #Correct
>>
>> z=[0 if all([2<3,6<7])] #Wrong
File "<stdin>", line 1
z=[0 if all([2<3,6<7])]
^
SyntaxError: invalid syntax
>>
I don't know this syntax and difference between Correct line and Wrong line?
allcondition was false. What value would you want assigned toz?