def countvowel(string): countvowel = 0; for i in string: if i == 'а' or i == 'е' or i == 'ё' or i == 'и' or i == 'о' or i == 'у' or i == 'ы' or i == 'э' or i == 'ю' or i == 'я': countvowel+=1 return countvowel lst = ['кошка','кофе','телевизор','автомобиль']rang = range(len(lst))for i in rang: lst[i] = countvowel(lst[i])print(lst)
Ответ дал: Гость
program mdd; uses crt; var a,b,c,d: longint; beginclrscr; readln(a,b,c,d); if (a> b) and (a> c) and (a> d) and (d< a) and (d< c) and (d< b) then writeln('правда')else writeln(''неправда); readkey; end.
Популярные вопросы