Question: Python help it is a grade 12 course def find astrological sign(month, date): (int, int)-str Given two int values represent ing a month and a

 Python help it is a grade 12 course def find astrological

sign(month, date): (int, int)-str Given two int values represent ing a month

Python help it is a grade 12 course

def find astrological sign(month, date): (int, int)-str Given two int values represent ing a month and a date, return a 3-character string that gives us what star sign a person born in that month and on that date belongs to, Use the SIGNS string (already defined for you at the top of this file) to figure this out. NOTE FROM BOB: A lot of string slicing to do here. It looks like the informat ion for each sign is exactly 16 characters Iong e can probably use that >>find astrological sign (8, 24) VIR >find.astrological sign (1, 15) CAP # NOTE FROM BOB: DO NOT EDIT THIS STRING # SIGNS is a string representing the start and end date of each sign # Each star sign is represented using three characters (e.g. Aries -ARI) # This is followed by a : and then the start month and start date # and then a- and then the end month and end date # (e.g. Aries starts on 03, 21 (March 21), and ends on 04, 19 (April 19)) # Each star signs information ends with a semicolon SIGNS = . 03, 21-04, 1 9-ARI ; 04, 20-05, 20-TAU; 05, 21-06, 21 =GEM :06, 22-07, 22-CAN ; . + 07, 23-08, 22-LEO; 08, 23-09, 22-V I R: 09, 23-10, 23-LI B: 1 0, 24-11 , 20-SCO; . . 1 1 , 21-12, 21 =SAG: 1 2, 22-01 , 20=CAP:01 , 21-02. 21-AQU: 02, 22-03, 20-PIS; +

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!