Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

inline for loop

def list_doubler(lst):
    doubled = [num * 2 for num in lst]
    return doubled
Source by blog.teamtreehouse.com #
 
PREVIOUS NEXT
Tagged: #inline #loop
ADD COMMENT
Topic
Name
2+8 =