Design a function to accept a name and a binary digit for returning appropriate greetings based on the digit.
Develop a function `greetConditionally(name, digit)` where `name` is a string for the recipient's name and `digit` is a binary digit, i.e., an integer that's either 0 or 1. The function should return "Hello `name`" if `digit` equals 1. Otherwise, it should return "Bye `name`". ### Parameters - `name` (String): Represents a person's name. - `digit` (Integer): A binary digit (0 or 1) that decides the type of greeting. ### Return Value - String: A sentence either starting with "Hello" or "Bye" followed by the `name` parameter, based on the `digit` input. ### Examples ```python # When digit equals 1, the greeting is "Hello" greetConditionally("Alon", 1) # Returns: "Hello Alon" # When digit equals 0, the greeting is "Bye" greetConditionally("Tomi", 0) # Returns: "Bye Tomi" # When digit equals 0, the greeting is "Bye" greetConditionally("Jose", 0) # Returns: "Bye Jose" ```