Implement a function punctuation() that takes no parameters, inputs a string from the user, and prints all of the punctuation characters appearing in the string, in order from left to right.
My coding I have so far is:
def punctuation():
a = raw_input("Please enter a string:")
check =
for p in check:
if p in a:
a.remove(p)
I'm working on IDLE and I keep getting an error message saying raw_input isn't defined? Any help you guys could give me is appreciated!