Odpowiedź :
d = int(input('Podaj dzień urodzin: '))
m = int(input('Podaj miesiąc urodzin: '))
if m == 1:
if d <= 19:
print('Koziorożec')
else:
print('Wodnik')
elif m == 2:
if d <= 18:
print('Wodnik')
else:
print('Ryby')
elif m == 3:
if d <= 20:
print('Ryby')
else:
print('Baran')
elif m == 4:
if d <= 19:
print('Baran')
else:
print('Byk')
elif m == 5:
if d <= 20:
print('Byk')
else:
print('Bliźnięta')
elif m == 6:
if d <= 20:
print('Bliźnięta')
else:
print('Rak')
elif m == 7:
if d <= 22:
print('Rak')
else:
print('Lew')
elif m == 8:
if d <= 22:
print('Lew')
else:
print('Panna')
elif m == 9:
if d <= 22:
print('Panna')
else:
print('Waga')
elif m == 10:
if d <= 22:
print('Waga')
else:
print('Skorpion')
elif m == 11:
if d <= 21:
print('Skorpion')
else:
print('Strzelec')
elif m == 12:
if d <= 21:
print('Strzelec')
else:
print('Koziorożec')