Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

python string replace not working

Asked by Rutuja Mishra Apr 5, 2021 2.4K views 1 answer
Share

About this question

As I am trying to replace some characters in python string but it is not working.

I am using this code:

name = abc000
name.replace(“000”,””)
It showed proper output in the python interpreter. Then I tried it in Pycharm by adding the following line
print(name)
but still not working. What to do if python replace not working.

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.