Computer Science, asked by khushi060603, 6 months ago

g) Find the output of the following program segments:
(i) a=5
while a>0:
print (“hello",a)
a=a-3
print (“Loop over !!")
(ii) for ch in ‘calm':
print (ch)
(iii) For v in [1,2,3]:
Print(v * v*v)​

Answers

Answered by akshita8888mishra
2

Answer:

outputs are:

(i) hello 5

loop over !!

hello 2

loop over !!

(ii) c

a

l

m

(iii) 1

8

27

Similar questions