Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part(A) Write a function called display_birthday_wishes which takes person's name (string), month of birth (integer) and the year of birth (integer) as inputs and
Part(A) Write a function called "display_birthday_wishes" which takes person's name (string), month of birth (integer) and the year of birth (integer) as inputs and display a message as follows: Laurel (name) Hi, Laurel You are 25 year old this year! 1990 display_birthday_wish (year of birth) Here's a bouquet of Daffodils for you! 3 (month of birth) Save your script as "PA2_Question1A.py". Note: Format of the message: Hi, < > You are < > year old this year! Here's a bouquet of < > for you! * In Python, the current year (as an integer) can be obtained using the date object as follows: from datetime import date current_year - date.today () - year 1 * Birth Month Flower: Each month has a flower that symbolizes the month of somebody's birth. Following is the list of birth month flowers for each month. Flower Name Month January February Carnations Primroses March Daffodils April May Sweet peas Hawthorn flowers June Roses July August Water lilies ppes September Asters Calendulas November Chrysanthemums December Holly flowers October
Step by Step Solution
★★★★★
3.39 Rating (143 Votes )
There are 3 Steps involved in it
Step: 1
from datetime import date lCarnationsPrimrosesDaffodilsSweet peasHawthorn flowers...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started