python string assignment by index
# Strings are immutable in python, so you cannot insert characters.
# You could do convert it to a list however:
text = "Hello Warld"
text = list(text)
text[7] = "o"
text = "".join(text)
>>>text
"Hello World"
python string assignment by index
# Strings are immutable in python, so you cannot insert characters.
# You could do convert it to a list however:
text = "Hello Warld"
text = list(text)
text[7] = "o"
text = "".join(text)
>>>text
"Hello World"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us