Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Remove all occurrences of a character from a string

# Python program to remove all occurrences of a character from a string
text= 'Welcome, to, Python, World'
print(text.replace(',',''))
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Python #Remove #occurrences #character #string
ADD COMMENT
Topic
Name
2+3 =