Program - From given string replace each punctuation with


Topic: Program - From given string replace each punctuation with

Solution

from string import punctuation
str1 = '/*Jon is @developer & musician!!'
replace_char = '#'
for char in punctuation:
    str1 = str1.replace(char, replace_char)
print("The strings after replacement : ", str1)



List all Python Programs