Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SIGN_GROUPS = '[ARI,LEO,SAG],[TAU,VIR,CAP],[GEM,LIB,AQU],[PIS,SCO,CAN]' SIGNS = 'ARI:03,21--04,19;TAU:04,20--05,20;GEM:05,21--06,21;CAN:06,22--07,22;' + 'LEO:07,23--08,22;VIR:08,23--09,22;LIB:09,23--10,23;SCO:10,24--11,20;' + 'SAG:11,21--12,21;CAP:12,22--01,20;AQU:01,21--02,21;PIS:02,22--03,20;' def get_bday_compatibility (bdayl: str, bday2: str) -> int: Given two strings representing birthdates

image text in transcribed

SIGN_GROUPS = '[ARI,LEO,SAG],[TAU,VIR,CAP],[GEM,LIB,AQU],[PIS,SCO,CAN]'

SIGNS = 'ARI:03,21--04,19;TAU:04,20--05,20;GEM:05,21--06,21;CAN:06,22--07,22;' + \ 'LEO:07,23--08,22;VIR:08,23--09,22;LIB:09,23--10,23;SCO:10,24--11,20;' + \ 'SAG:11,21--12,21;CAP:12,22--01,20;AQU:01,21--02,21;PIS:02,22--03,20;'

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 III pass

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions