Personal website Rudolf Adamkovič

Home / Python


Set comprehension

A Python expression that creates a set, using the syntax

{EXPRESSION for ITEM in ITERABLE}
{EXPRESSION for ITEM in ITERABLE if CONDITION}

similar to set-builder notation.



© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.