Rudy’s OBTF
Rudolf Adamkovič
Home
/
Python
/
Set comprehension
Example with
if
{x
*
10
for
x
in
[1, 2, 3, 4, 5]
if
x
%
2
==
0}
{40, 20}
© 2025
Rudolf Adamkovič
under
GNU General Public License (GPL)
version 3 or later.
Made with
Emacs
and secret alien technologies of yesteryear.