zodiacs = [(120, 'Cap'), (218, 'Aqu'), (320, 'Pis'), (420, 'Ari'), (521,
    'Tau'), (621, 'Gem'), (722, 'Can'), (823, 'Leo'), (923, 'Vir'), (1023,
    'Lib'), (1122, 'Sco'), (1222, 'Sag'), (1231, 'Cap')]

def get_zodiac_of_date(date):
    date_number = int(''.join((str(date.date().month), '%02d' % date.date()
        .day)))
for z in zodiacs:
    if date_number <= z[0]:
        return z[1]
How would I determine zodiac / astrological star sign from a birthday in Python?