DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python list comprehension
nums = [3578, 6859, 35689, 268] half_of_nums = [x/2 for x in nums]
Source by www.datacamp.com #
PREVIOUS
NEXT
Tagged:
#python
#list
#comprehension
ADD COMMENT
Topic
COMMENT
Name
2+7 =
Submit