Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python for in for in

adj = ["red", "big"]
fruits = ["apple", "banana"]

for x in adj:
  for y in fruits:
    print(x, y)
    #output: red apple, red banana, big apple, big banana
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
1+6 =