Search
 
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
Name
2+1 =