list=[["capricorn","december 22", "january 19"],
["aquarius","january 20", "february 18"],
["pisces","february 19", "march 20"],
["aries","march 21", "april 19"],
["taurus","april 20", "may 20"],
["gemini","may 21","june 20"],
["cancer","june 21", "july 22"],
["leo","jul 23", "august 22"],
["virgo","august 23", "september 22"],
["libra","september 23", "october 22"],
["scorpio","october 23", "november 21"],
["sagittarius","november 22", "december 21"]]
Ask the user for an input and then return the zodiac sign if date lies between 2 dates.
What I have tried:
Eg :-If a date lies between december 22 and January 19 then capricorn should be printed