Rudolf Adamkovič Personal site


Example with if

{x: x * 10 for x in [1, 2, 3, 4, 5] if x % 2 == 0}
{2: 20, 4: 40}

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