+ 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 Respuesta
+ 6
List[0]+='d'
11th Feb 2021, 6:22 PM
Abhay
Abhay - avatar