How to remove a character from a String. Suppose you are given a problem-solving coding test and said to do that. So you have to solve without using built-in functions. May be you will do in any other way but I tried to make it more simpler.

string = input('Enter a string: \n')
charecter = input('Enter target character: \n')
result = ''

for index in string:
    if(index != charecter):
        result = result + index
print('Output: ', result)

So, first of all, have to input a string and then input a character then remove the character and return the string that no more contains that character.

I take two input fields and another empty value as result, then used for loop and index, then conditionally checked index is not equal to the target character then return the index and added all of them. So result output doesn't contain that character. 

Remove Character from String using python

Output for Remove Character from String using python:

Enter a string: 

bangladesh

Enter target character: 

e

Output:  bangladsh

At the end when you run this code you will see like that output.