<human>:  how to end indentation.
<bot>:
  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.