SIGNS = '03,21-04,19=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=VIR;09,23-10,23=LIB;10,24-11,20=SCO;' + \ '11,21-12,21=SAG;12,22-01,20=CAP;01,21-02,21=AQU;02,22-03,20=PIS;' def find_astrological_sign(month, date): ''' (int, int) -> str Given two int values representing...

80.2K

Verified Solution

Question

Programming

SIGNS ='03,21-04,19=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=VIR;09,23-10,23=LIB;10,24-11,20=SCO;'+ \'11,21-12,21=SAG;12,22-01,20=CAP;01,21-02,21=AQU;02,22-03,20=PIS;'def find_astrological_sign(month, date): ''' (int, int) -> strGiven two int values representing a month and a date, return a3-character string that gives us what star sign a person born inthat month and on that date belongs to. Use the SIGNS string(already defined for you at the top of this file) to figure thisout. NOTE: A lot of string slicing to do here. The information foreach sign is exactly 16 characters long. >>>find_astrological_sign(8, 24) 'VIR' >>>find_astrological_sign(1, 15) 'CAP' How can this be done usinglists?

Answer & Explanation Solved by verified expert
3.6 Ratings (512 Votes)
AnswerCodeSIGNS    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students