Answers for "deleting part of string on python"

2

remove a part of a string python

url = 'abcdc.com'
print(url.replace('.com',''))
Posted by: Guest on July-20-2020
0

how to delete item in string python

newstr = oldstr.replace("M", "")
Posted by: Guest on December-10-2020

Code answers related to "deleting part of string on python"

Python Answers by Framework

Browse Popular Code Answers by Language