Comment

Comment by BerislavLopac

I would like to see adding a comprehension-like filtering clause to for-statements:

    for n in range(100) if n%2:
        print(f'{n} is odd number')
Does anyone know if there is a PEP covering that?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton