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 passStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started