Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Really confused on this problem. Please help using python. thanks def find.astrological.sign(month, date): int, int)str Given two int values representing a month and a date,

image text in transcribedimage text in transcribedReally confused on this problem. Please help using python. thanks

def find.astrological.sign(month, date): int, int)str Given two int values representing 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 Calready 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 information for each sign is exactly 16 characters long. We 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 (Aprii 19)) # Each star sign's information ends with a semicolon SIGNS = '03,21-04 , 19-AR1:04 , 20-05 , 20-TAU ; 05 , 2 07,23-08,22-LE0;08,23-09,22-VIR; '11,21-12,21-SAG;12,22-01,20-CAP:01,21-02,21-AQU;02,22-03,20-PIS;" 1-06,21-GEM;06,22-07,22-CAN;' 09,23-10,23-LIB;10,24-11,20-SCO; ' +\

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions