While PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

In 

[1]:
i=1

while i<=10:

print(i)

i=i+1

10

In [5]:
i=1

n=87

while i<=10:

print(n,"*",i,"=",i*n)

i=i+1

87 * 1 = 87

87 * 2 = 174

87 * 3 = 261

87 * 4 = 348

87 * 5 = 435

87 * 6 = 522

87 * 7 = 609

87 * 8 = 696

87 * 9 = 783

87 * 10 = 870

In [ ]:
l2=[16,17,18,19,20,21,22,23,24,25]

In [ ]:
i=0

In [ ]:
while i<len(l2):

l2[i]=l2[i]*l2[i]

i=i+1

In [ ]:
l2

In [ ]:

You might also like