How do I remove punctuation from a string in python? I followed the approach that someone posted on Stackoverflow, but it is not working.
punctuation = ['(', ')', '?', ':', ':', ',', '.', '!', '/', '"', "'"]
str = input("Hi, my name is Yael Shapiro!")
for i in punctuation:
str = str.replace(i,"")
print(str)