Задание
print\(first\_char\)
new_str = str1.replace\("о", "а"\)
print\(new\_str\)
new_str2 = str1
print\(new\_str2\)
concatenated_str = str1 + " строка"
print\(concatenated\_str\)
Дан фрагмент программы работы со строкой:
str1 = "Это строка"
print\(len\(str1\))
first_char = str1
\[0\]
print\(first\_char\)
new_str = str1.replace\("о", "а"\)
print\(new\_str\)
new_str2 = str1
\[:5\]
print\(new\_str2\)
concatenated_str = str1 + " строка"
print\(concatenated\_str\)
Восстановите порядок строк, которые будут появляться в окне вывода:
- 10
- Э
- Эта страка
- Это с
- Это строка строка