# phrase constants
GREETINGS = {
    "tel": "Namaste",    # Telugu
    "eng": "Hello",      # English
    "fr": "Bonjour",     # French
    "ger": "Hallo"       # German
}

GOODBYES = {
    "tel": "Malli Kaluddam",   # Telugu
    "eng": "Goodbye",          # English
    "fr": "Au revoir",         # French
    "ger": "Auf Wiedersehen"   # German
}


def say_hello(name, language="eng"):
    greeting = GREETINGS.get(language, "Hello")
    print(f"{greeting}, {name}")

def say_goodbye(name, language="eng"):
    goodbye = GOODBYES.get(language, "Goodbye")
    print(f"{goodbye}, {name}")

def main():
    print("Running common_phrases_final.py directly...")

    # Test the say_hello function for Amber
    print("\n--- Testing say_hello ---")
    for language in GREETINGS:
        say_hello("Amber", language)
    
    # Test the say_goodbye function for Amber
    print("\n--- Testing say_goodbye ---")
    for language in GOODBYES:
        say_goodbye("Amber", language)

    print()

# This main function is used to test all functions in this module
# It uses the more professional approach of checking __name__ 
# before running main().  Now main() will only run if this module 
# is executed directly and not if it is imported as a module.
if __name__ == "__main__":
    main()
    