hello!
so im new to processing and i have no clue what im doing and im supposed to be creating a generator of some sort. ive used else, if statements and i think that works. so when i put in my values i get the answer printed out into the console but how do i correlate that to display my answer onto the window? (sorry if the question doesn’t make sense)
username = ‘anon’
day = 20
month = ‘january’
x = ‘astro sign’
if month == ‘december’:
x = ‘Sagittarius’ if (day < 22) else ‘capricorn’
elif month == ‘january’:
x = ‘Capricorn’ if (day < 20) else ‘aquarius’
elif month == ‘february’:
x = ‘Aquarius’ if (day < 19) else ‘pisces’
elif month == ‘march’:
x = ‘Pisces’ if (day < 21) else ‘aries’
elif month == ‘april’:
x = ‘Aries’ if (day < 20) else ‘taurus’
elif month == ‘may’:
x = ‘Taurus’ if (day < 21) else ‘gemini’
elif month == ‘june’:
x = ‘Gemini’ if (day < 21) else ‘cancer’
elif month == ‘july’:
x = ‘Cancer’ if (day < 23) else ‘leo’
elif month == ‘august’:
x = ‘Leo’ if (day < 23) else ‘virgo’
elif month == ‘september’:
x = ‘Virgo’ if (day < 23) else ‘libra’
elif month == ‘october’:
x = ‘Libra’ if (day < 23) else ‘scorpio’
elif month == ‘november’:
x = ‘scorpio’ if (day < 22) else ‘sagittarius’
print(x)