Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python program that implements a function called getZodiac() that will use the input of birth day and month to tell a users Zodiac

Write a python program that implements a function called getZodiac() that will use the input of birth day and month to tell a users Zodiac sign.

Your program should contain two functions:

main(): will receive user input, pass it into the getZodiac function and print the result

getZodiac(): takes two arguments for day and month and returns the name of the zodiac sign as a string

Sample input/output:

What's your name?Laura Spelman What is your dob? mmdd 0123 Hello Laura Spelman Oooh you are a(n) Aquarius !

The Zodiac dates are as follows:

#aries 3/21 - 4/19

#taurus 4/20 - 5/20 #gemini 5/21 - 6/20 #cancer 6/21 - 7/22 #leo 7/23 - 8/22 #virgo 8/23 - 9/22 #libra 9/23 - 10/22 #scorpio 10/23 - 11/21 #sag 11/22 - 12/21 #cap 12/22 - 1/19 #aquarius 1/20-2/18 #pisces 2/19 - 3/20

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions