DEV Community

Discussion on: What are your favorite programming language syntax features?

Collapse
 
defman profile image
Sergey Kislyakov • Edited

The last line is:

for a in list_a:
    for b in list_b:
        if a != b:
            different_num.append((a, b))