Nested For Loop (Multiple line) in Python

 Nested For Loop (Multiple line) in Python

l1 = ['orange','mango','apple']

l2 = ['banana','lemon','tamato']


for i in l1:

    for j in l2:

        print(i,j)

OUT PUT

orange banana orange lemon orange tamato mango banana mango lemon mango tamato apple banana apple lemon apple tamato




Comments

Popular posts from this blog

What is chopper

Top 5 best Ethical hacking book for beginners

Introduction To Triac