import time import os def tell_willow_i_love_her(use_speech=False): """Tells Willow you love her, either by speech or printing.""" message = "Willow, I love you so much!" if use_speech: try: # For macOS (using 'say') os.system(f"say '{message}'") except: print("Speech functionality failed. Printing message instead.") print(message) else: print("--------------------------") print(" For Willow, with love! ") print("--------------------------") print("") print(message) print("") print("--------------------------") print(" *Sending bunny kisses* ") print("--------------------------") #optional bunny sounds! time.sleep(1) print(" *thump thump* ") #bunny thumping sound time.sleep(1) print(" *nibble nibble* ") #bunny eating sound time.sleep(1) print(" *snuffle snuffle* ") #bunny nose sound # Example usage (change use_speech to True if you want it spoken): tell_willow_i_love_her(use_speech=False) #or tell_willow_i_love_her(use_speech=True)