Fortune Telling Collection - Zodiac Analysis - Python input constellation output birthday code
Python input constellation output birthday code
1.
Define a get_constellation(month, date) function to get the date of birth.
2.
Create a date and constellation to store the corresponding date and constellation respectively.
3.
Use the if statement to determine whether the number of days entered is less than the number of days corresponding to the birth month minus one.
4.
If yes, return the month minus the corresponding constellation; If not, return the constellation corresponding to the month of birth.
- Related articles
- What constellation is brittle?
- 12 how will the constellation man retaliate when he finds out that his girlfriend is cheating?
- Stars talk about constellations _ Stars talk about constellations
- Say I'm a good constellation
- What constellation does the fake Scorpio look like _ What is the fake constellation of Scorpio?
- Resumes of Jason and Nana?
- The biggest feature of Aries
- My girl was born at 6: 36 on August 6th, 2009.
- Constellation man who is led to be a fool
- Tarot card culture of Sagittarius _ Volkswagen Tarot card