Design a Python program that prompts the user to input a string and then removes all punctuation marks in the inputted string. The program should check for common punctuations such as periods, commas, exclamation marks, question marks, and semicolons. Additionally, it should take care of removing any other punctuation that is not standard in written language, such as hashtags and emojis. The program should output the resulting string with the removed punctuations.
user
Import re

# Prompt user to input a string
user_input = input("Enter a string: ")

# Remove all punctuation marks from the inputted string using regex
user_input = re.sub("[^A-Za-z0-9]", "", user_input)

# Output the resulting string with the removed punctuations
print("The following string has all punctuation removed:", user_input)
assistant
Design a Python program that prompts the user to input a string and then removes all punctuation marks in the inputted string. The program should check for common punctuations such as periods, commas, exclamation marks, question marks, and semicolons. Additionally, it should take care of removing any other punctuation that is not standard in written language, such as hashtags and emojis. The program should output the resulting string with the removed punctuations.
user
Here's one possible implementation of such a program:

```python
import string

def remove_punctuations(s):
    # Remove standard punctuations
    s = ''.join(c for c in s if c not in string.punctuation)
    # Remove other non-standard punctuations (e.g. Emojis)
    s = ''.join(c for c in s if c.isalnum() or c.isspace())
    return s

# Prompt the user for input and remove punctuations
s = input('Enter a string: ')
s = remove_punctuations(s)

# Print the resulting string
print(s)
```

In this program, we first import the `string` module, which provides a string of all standard punctuation characters. We then define a function `remove_punctuations` that takes a string as input and returns a new string with all punctuations removed. This function first removes all standard punctuations using a list comprehension and the `string.punctuation` string. It then removes any remaining non-alphanumeric or non-whitespace characters by keeping only those that meet these conditions using another list comprehension.

In the main part of the program, we prompt the user for input using the `input` function, and then pass the inputted string to `remove_punctuations` to obtain the cleaned version. Finally, we print the cleaned string using the `print` function.
assistant