Javatpoint Logo
Javatpoint Logo

Python Program to Remove Punctuation from a String

Punctuation:

The practice, action, or system of inserting points or other small marks into texts, in order to aid interpretation; division of text into sentences, clauses, etc., is called punctuation. -Wikipedia

Punctuation are very powerful. They can change the entire meaning of a sentence.

See this example:

  • "Woman, without her man, is nothing" (the sentence boasting about men's importance.)
  • "Woman: without her, man is nothing" (the sentence boasting about women's importance.)

This program is written to remove punctuation from a statement.

See this example:

Output:

Python Nativ Data Programs6



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA