Personal website Rudolf Adamkovič

Home / Python / List comprehension


Example

[x * 10 for x in [1, 2, 3, 4, 5]]
[10, 20, 30, 40, 50]

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