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
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
7+5 =