Женя обнови решението на 11.03.2015 02:23 (преди над 9 години)
+def interepret_western_sign(day,month):
+ if 21<=day<=31 and month==3 or 1<=day<=20 and month==4:
+ var1="aries"
+ elif 21<=day<=31 and month==4 or 1<=day<=20 and month==5:
+ var1="taurus"
+ elif 21<=day<=31 and month==5 or 1<=day<=20 and month==6:
+ var1="gemini"
+ elif 21<=day<=31 and month==6 or 1<=day<=22 and month==7:
+ var1="cancer"
+ elif 23<=day<=31 and month==7 or 1<=day<=22 and month==8:
+ var1="leo"
+ elif 23<=day<=31 and month==8 or 1<=day<=22 and month==9:
+ var1="virgo"
+ elif 23<=day<=31 and month==9 or 1<=day<=22 and month==10:
+ var1="libra"
+ elif 23<=day<=31 and month==10 or 1<=day<=21 and month==11:
+ var1="scorpio"
+ elif 22<=day<=31 and month==11 or 1<=day<=21 and month==12:
+ var1="sagittarius"
+ elif 22<=day<=22 and month==12 or 1<=day<=20 and month==1:
+ var1="capricorn"
+ elif 21<=day<=21 and month==1 or 1<=day<=19 and month==2:
+ var1="aquarius"
+ elif 19<=day<=19 and month==2 or 1<=day<=20 and month==3:
+ var1="pisces"
+ return var1
+
+def interpret_chinese_sign(year):
+ if year%12==4:
+ var2="rat"
+ elif year%12==5:
+ va2="ox"
+ elif year%12==6:
+ var2="tiger"
+ elif year%12==7:
+ var2="rabbit"
+ elif year%12==8:
+ var2="dragon"
+ elif year%12==9:
+ var2="snake"
+ elif year%12==10:
+ var2="horse"
+ elif year%12==11:
+ var2="sheep"
+ elif year%12==0:
+ var2="monkey"
+ elif year%12==1:
+ var2="rooster"
+ elif year%12==2:
+ var2="dog"
+ elif year%12==3:
+ var2="pig"
+ return var2
+
+
+def interpret_both_signs(day, month, year):
+ return (interpret_western_sign(day, month), interpret_chinese_sign(year))