How to remove specific character from string in Python

1 Answer

0 votes
s = "python c c++ php c#"

s = s.replace('p', '')

print(s)


  
'''
run:
    
ython c c++ h c#

'''

 



answered Sep 30, 2022 by avibootz

Related questions

...