while loop with list in python

 while loop with list in python

l1 = [1,2,3,4,5,6]

i=0

while i<len(l1):

    l1[i] =l1[i]+100

    i=i+1

l1

OUT PUT

[101, 102, 103, 104, 105, 106]



Comments

Popular posts from this blog

What is chopper

What is Resistor

Top 5 best Ethical hacking book for beginners