Write a method which will remove any given character from a String?
https://javarevisited.blogspot.com/2011/06/top-programming-interview-questions.html
Write a method which will remove any given character from a String?
This one is second question solved by python
CODE:
a = input('Enter string word or sentence: ')
b = input('Enter a remove word: ')
c = a.replace(b,'')
print(c)
----
Regards
Pykar
Write a method which will remove any given character from a String?
This one is second question solved by python
CODE:
a = input('Enter string word or sentence: ')
b = input('Enter a remove word: ')
c = a.replace(b,'')
print(c)
----
Regards
Pykar
Comments
Post a Comment