SEP-PYTHON

PROGRAM 1 PROGRAM 2 PROGRAM 3 PROGRAM 4 PROGRAM 5 PROGRAM 6 PROGRAM 7

PART B

PROGRAM B1 PROGRAM B2 PROGRAM B3 PROGRAM B4 PROGRAM B5 PROGRAM B6 PROGRAM B7 . . .

5.

 
  
 
5. Write a Program to remove punctuations from a string. 
 
----------------------------------------------------
 
import string 
text = input("Enter a string: ") 
translator = str.maketrans('', '', string.punctuation) 
result = text.translate(translator) 
print("String without punctuation:", result)