List comprehension

    0

    4

    Python public recipes

    Shortcut: list.comprehension

    newlist = [2*x for x in original_list]
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.