DEV Community

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

Collapse
 
geocine profile image
Aivan Monceller

It's my first time to see such syntax since I haven't really touched Python. Looks interesting , I couldn't understand what the last line does though.

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))