Q. Write a program to remove ‘i’ (if any) from a string.


Answer :-

s = input("Enter a string :-")
new = ""

for i in s :
    if i != "i" :
        new += i

print(new)

Output :-

Enter a string :-education
educaton
>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post