human
Python program to replace data in a template text.
assistant
Here is a Python program to replace data in a template text

import re

def replace(template, data):
    """Replace data in a template text.

    Parameters
    ----------
    template : str
        The template text.
    data : str
        The data to be replaced.
    """
    return template.replace(data, '<{}>'.format(data))

# Enter the template text
template = "<b>{}</b>"

# Enter the data to be replaced
data = "hello"

# Calling the function
print((replace(template, data)))

#Example Output
# <b>{}</b>

#Remember to inspect code for bugs.