Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

listed for loop

#list comprehension: squaring numbers in a list a list.
cardinals = [1,2,3,4,5]
squares = [i**2 for i in cardinals]
print(squares)
Source by buzzcoder.gitbooks.io #
 
PREVIOUS NEXT
Tagged: #listed #loop
ADD COMMENT
Topic
Name
5+2 =