If anybody can help me I would really appreciate it! I’m working on a little personal project in PyCharm that will take a person’s birthdate and tell them their zodiac sign. I’m trying to use AND, but I think I’m screwing it up because the month is a string and the rest are ints… here’s my code:
def find_sun_sign():
if day > 0 and day < 23 and month == ‘august’:
sun_sign = ‘leo’
return sun_sign
I keep getting this error:
in find_sun_sign
if day > 0 and day < 21 and month == ‘august’:
TypeError: ‘>’ not supported between instances of ‘str’ and ‘int’