DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+8 =
Submit