Open Escartem opened 1 year ago
sinon, alternative du programme qui tient en une seule ligne (a part son execution) car je me suis amusé :
d=lambda l:(lambda c="103211042010421105201052110621106221072210723108221082310922109231102211023111221112311221112221012010121102181021910320",v=int(f"1{''.join(list(reversed(l.split('/')[:-1])))}"):["Bélier","Taureau","Gémeaux","Cancer","Lion","Vierge","Balance","Scorpion","Sagittaire","Capricorne","Verseau","Poisson"][[_[0]<=v<=_[1] if not _[0]>=_[1] else v>=_[0] or v<=_[1] for _ in [(int(_[0:5]),int(_[5:10])) for _ in [c[_:_+10] for _ in range(0,120,10)]]].index(True)])()
print(d("JJ/MM/AAAA"))