This is valid Python syntax
I don&#x27;t find that so bad. They look complicated but behave as expected, and would only be a problem if you inherit a code base from a lone wolf without common sense.<p>Python has plenty of warts[1], but I don&#x27;t think the syntax is one of them (yet). Some of the more concerning warts:<p><pre><code>    # Mutable defaults in function parameters.
    def fn(arg=[]):
        arg.append(1)
        print(arg)

    fn() # [1]
    fn() # [1, 1]
    fn() # [1, 1, 1]

    # Loop variables are shared across executions.
    lambda_list = [lambda: print(i) for i in range(5)]
    for fn in lambda_list: fn()
    # 4
    # 4
    # 4
    # 4
    # 4

    # Iterating over an exhausted generator yields an empty list.
    numbers = (i for i in range(5))
    assert 1 in numbers
    print(list(numbers))
    # []
    # I hate this one because it could have easily been an error, it&#x27;s 
    # hard to track down, and lots of stdlib functions return generators.


    # Chained operators can sometimes be very unintuitive.
    should_be_ascending = True
    assert 1 &lt; 2 == should_be_ascending
    # AssertionError because it was interpreted as
    # `(1 &lt; 2) and (2 == should_be_ascending)`
</code></pre>
[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;satwikkansal&#x2F;wtfpython">https:&#x2F;&#x2F;github.com&#x2F;satwikkansal&#x2F;wtfpython</a>