micropython/tests/bytecode/mp-tests/setcomp1.py

3 lines
50 B
Python

x = {a for a in l}
x = {a + b for a, b in l if b}