1.

Observe the following Python code carefully and obtain the output, which will appear on the screen after execution of it.def Findoutput ():L = "earn"X = " "count = 1for i in L:if i in ['a', 'e',' i', 'o', 'u']:x = x + 1. Swapcase ()else:if (count % 2 ! = 0):x = x + str(len (L[:count]))else:x = x + 1count = count + 1print xFindoutput ()

Answer»

The output is:

earn



Discussion

No Comment Found