How do I add a character in a specific index of a list? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I add a character in a specific index of a list?

List=['ade', 'zio'] I want to add 'd' inside the list[0] index. I want the final result to be List=['aded', 'zio'] Help!

11th Feb 2021, 6:17 PM
The Rocky
The Rocky - avatar
1 Answer
+ 6
List[0]+='d'
11th Feb 2021, 6:22 PM
Abhay
Abhay - avatar