Can you substitute letters in a string like you reassign items in a list using index? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Can you substitute letters in a string like you reassign items in a list using index?

You can call out letters in a string using the index (similar to list items). But I am having difficulty if I want to alter the string slightly. Does anyone know how would you go about this?

21st Dec 2021, 11:43 PM
Annie Dou
1 Resposta
+ 3
So use the replace function with 'variable.' at the front. Cool, thanks
21st Dec 2021, 11:59 PM
Annie Dou