Question: Pls use python string methods to solve this question, thanks def get_sign_group (sign: str) -> int: Given a three character string representing a star sign,

Pls use python string methods to solve this question, thanks
def get_sign_group (sign: str) -> int: Given a three character string representing a star sign, return which group (out of 0, 1, 2, or 3) this star sign belongs to. Use the SIGN_GROUPS string (already defined for you above) to figure out the group. i. e. As given by this string '[ARI, LEO, SAG], [TAU, VIR, CAP], [GEM, LIB, AQU]. [PIS the signs ARI, LEO and SAG are in group O, the signs TAU, VIR, CAP are and so on. >>> get_sign_group ('ARI') >>> get_sign_group (CAN) pass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
