<human>:  Give me a Python code to remove non-alphanumeric characters from strings.
<bot>:', '', string)

# Enter the string
string = "submarine"

# Calling the function
print((_remove_non_alphanumeric(string)))

#Example Output
# submarine

#Remember to inspect code for bugs.