How to delete a character from a string using Python

前端 未结 16 1373
耶瑟儿~
耶瑟儿~ 2020-11-22 16:35

There is a string, for example. EXAMPLE.

How can I remove the middle character, i.e., M from it? I don\'t need the code. I want to know:

16条回答
  •  北海茫月
    2020-11-22 17:17

    Strings are immutable in Python so both your options mean the same thing basically.

提交回复
热议问题