Write a program to Remove special symbols/Punctuation from a given string


Topic: Write a program to Remove special symbols/Punctuation from a given string

Solution

import string
str1 = "/*Jon is @developer & musician"
new_str = str1.translate(str.maketrans('', '', string.punctuation))
print("New string is ", new_str)



List all Python Programs