Python W explanation please Consider the string s feefifofu
Python. W/ explanation please
Consider the string: s = \'fee-fi-fo-fum\' as the starting point for a) and b) below, each part independent of the other. Write what is printed to the screen. L = s.split(\'-\') K = [] for w in L: x = w.replace(\'f, \'h\') K.append(x) s = \'>Solution
a) Given string divided into token with constraint - and repalce each f with h in each token and append tags to each token at begin and end
Ouput : <hee><hi><ho><hum>
b) When a vowel occure in given string that is added to input string at begining.(Note : Last occured vowel finally appear first in input string )
Output : uoieefee-fi-fo-fum

