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

Comments

Popular posts from this blog

Hardy - Ramanujan Number (Magic Number) Program in Python

FLAMES CODE ON PYTHON

Count Swap for Sorting in Python