<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_languages_and_exit(lst, status=1, header=True):
 """print a list of languages and exit"""

    if header:
        print("Available languages:")
    for lg in lst:
        print("- %s" % lg)
    sys.exit(status)