human
how to end indentation.
assistant
Here is a Python program to end indentation

import re

def end_indent(string, indent):
    """Ends indentation."""
    if indent > 0:
        string = string[:indent] + "\n" + string[indent:]
    return string

# Enter the string
string = "Hello\n"
indent = 2

# Calling the function
print((end_indent(string, indent)))

#Example Output
# He
# llo

#Remember to inspect code for bugs.