Human: how to remove \n from the right side of values in a string. Assistant: 
Here is a Python function to remove n from the right side of values in a string

import re

def remove_newline(*args):
    """Remove \n from the right side of values in a string."""
    return re.sub(r'\n', '', *args)

# Enter the string
string = "hello\nworld"

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

#Example Output
# helloworld

#Remember to inspect code for bugs.