Python program to remove a word from the sentence

Editorial Staff - - Python Programming


Today we are going to share a Python program to remove a word from the sentence. If you are a python beginner and want to start learning the python programming, then keep your close attention in this program.

Want to increase your Python knowledge, practice all Python programs, here is a collection of 100+ Python problems with solutions.

Python program to remove a word from the sentence code

Copy the below python program and execute it with the help of python compiler.

Output:

Enter any string to remove particular word: This is an example of the python program.
Enter word to be delete/remove: the
Deleting given word from the given string…
New String after successfully deleting ‘This is an example of python program.’

Same program in different programming langugaes:

  1. C program to delete words from the sentence
  2. Java program to delete words from the sentence
  3. C++ program to delete words from sentence


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari