kkgod Новичок Пользователь Окт 7, 2020 21 1 3 Ноя 4, 2020 #1 str_1 = input() countS = 0 symb = 0 for el in str_1: if str_1.count(el) > countS: countS = str_1.count(el) symb = el str_1 = str_1.replace(symb, "") str_1 = symb * countS + str_1 print(str_1)
str_1 = input() countS = 0 symb = 0 for el in str_1: if str_1.count(el) > countS: countS = str_1.count(el) symb = el str_1 = str_1.replace(symb, "") str_1 = symb * countS + str_1 print(str_1)
0 S stud_55 Модератор Команда форума Модератор Апр 3, 2020 1 522 672 113 Ноя 4, 2020 #2 Код вставляйте с помощью ... -> код -> Python. А также напишите что данный код должен делать.