The creators of the Python language are mulling a new proposal, PEP 622, that would finally bring a pattern matching statement syntax to Python. The new pattern matching statements would give Python ...
Does python have a syntax like this?<BR><BR>a=[logical_statement]?b:c<BR><BR>Where, in assigning a, it evaluates logical_statement for truth, and if true, assigns b to a, otherwise assigns c to a.