Replace character at position in Python string 🐍 #shorts #python

preview_player
Показать описание
In this quick video, I'm going to show you how to replace a single character in a Python string. Since Python strings are immutable, you have to build a new string.
Рекомендации по теме
Комментарии
Автор

Would it be bad for python to add something like s1[pos]='s'? The same way you'd modify a list. Since a string is basically a character list no?

blake
join shbcf.ru