title: Wrap code in a function
body: <blockquote>
    <p>Write a function 
        Hi, <strong>name</strong> You are <strong>current age</strong> this year.</p>
  </blockquote>
  
  <p>So far I have this:</p>
  
  <pre><code>from datetime import date
  p = current_year = date.today().year
  
  name = raw_input("enter your name")
  y = raw_input("enter ur month of birth")
  z = raw_input("enter your year of birth")
  
  current_age =(int(p)-int(z))
  
  print current_age
  print("Hi,", name, " you are" , current_age, " years old this year!"
    "Here's a bouquet of flowers for you!")
  </code></pre>
  
  <p>This code works but I am trying to turn it into a function. Can anyone help?</p>
  
  <pre><code>from datetime import date
  p = current_year = date.today().year
  
  def bday_wish(name,y,z):
      current_age =(int(p)-int(z))
  
  print current_age
  print("Hi,", name, " you are" , current_age, " this year!")
  </code></pre>