Python// Can I change the string item in the list?

Asked 2 years ago, Updated 2 years ago, 66 views

list1 = ["**abcd", "erggd", "124rrtw"].

erggd",

I want to make the list item "*abcd" in the list "abcd" ( is blank) Is there a way to change the module without using it?

python3 list

2022-09-22 20:06

1 Answers

list1 = ["**abcd", "erggd", "124rrtw"]
list1[0] = ' abcd'

I can do it, right?


2022-09-22 20:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.