Computer Science, asked by harshita1907, 2 months ago

20. Write the output of the following Python program code:
L = "neat"
X = 1
L1 = []
count=1
for i in L:
if i in ['a', 'e','i','o', 'u']:
X = X + i.swapcase ( )
else:
if( (count%2) !=0):
X = X + str((len (L[:count])))
else:
X = X + i
count = count + 1
print(X)
171​

Answers

Answered by chintamanbhamre000
4

Answer:

program code: STRI= List ... if (count #2) !=0 ) : (+str ( (Len (L{:count})}) count=count +1 print

Similar questions
Math, 2 months ago