Question: using python string methods only, ty def find_astrological_compatibility(sign_1: str, sign_2: str) -> int: ''' Given two 3-character strings representing star signs, return an int representing

using python string methods only, ty
def find_astrological_compatibility(sign_1: str, sign_2: str) -> int: ''' Given two 3-character strings representing star signs, return an int representing how compatible they are. According to Bob's rules, the compatibility between signs is calculated based on the SIGN_GROUPS they belong in, as follows: - If the signs are in the same group, return 100 - If both the signs are in an odd-numbered group (i.e. 1 and 3) OR if both are in an even group (i.e. 0 and 2), then return 70 - For all other cases, return 50
def get_bday_compatibility (bdayl: str, bday2: str) -> int: Given two strings representing birthdates in the format DD-MM-YYYY, figure out what star sign each birthdate belongs to and return the astrological compatibility of the two signs. NOTE FROM BOB: This code should look similar in structure to the get_name_compatibility function that I already finished. That is, it should call on other functions for help, and not be more than a couple of lines long in total. >>> get_bday_compatibility ('30-08-1998', 01-09-1998') 100 >>> get_bday_compatibility ('30-08-1998', '08-12-1978') 50 pass def get_bday_compatibility (bdayl: str, bday2: str) -> int: Given two strings representing birthdates in the format DD-MM-YYYY, figure out what star sign each birthdate belongs to and return the astrological compatibility of the two signs. NOTE FROM BOB: This code should look similar in structure to the get_name_compatibility function that I already finished. That is, it should call on other functions for help, and not be more than a couple of lines long in total. >>> get_bday_compatibility ('30-08-1998', 01-09-1998') 100 >>> get_bday_compatibility ('30-08-1998', '08-12-1978') 50 pass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
