Код:
word = ['к', 'р', 'и', 'п', 'т', 'о', 'г', 'р', 'а', 'ф', 'и', 'я', 'н', 'у', 'ж', 'н', 'а']
word = ''.join(word)
word = word.replace('а', '1').replace('е', '2').replace('и', '3')
word = word.replace('о', '4').replace('у', '5').replace('я', '6')
word = list(word)
print(word)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Код:
word = ['к', 'р', 'и', 'п', 'т', 'о', 'г', 'р', 'а', 'ф', 'и', 'я', 'н', 'у', 'ж', 'н', 'а']
word = ''.join(word)
word = word.replace('а', '1').replace('е', '2').replace('и', '3')
word = word.replace('о', '4').replace('у', '5').replace('я', '6')
word = list(word)
print(word)