Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list comprehension

# List comprehension 

        
list_comp = [i+3 for i in range(20)]

# above code is similar to 

for i in range(20):
	print(i + 3)
 
PREVIOUS NEXT
Tagged: #list #comprehension
ADD COMMENT
Topic
Name
3+7 =