Question: Coding Problem 8 (External resource) (4.0 points possible Happy Birthday.py 1 current_day = 31 2 current_month = 5 3 current year = 2018 4 birth_day
Coding Problem 8 (External resource) (4.0 points possible Happy Birthday.py 1 current_day = 31 2 current_month = 5 3 current year = 2018 4 birth_day 19 5 birth_month = 12 6 birth_year = 1990 7 8 #You may modify the lines of code above, but don't move them! 9 #When you Submit your code, we'll change these lines to 10 #assign different values to the variables. 11 12 #Given the current date and birth date held by the variables 13 #above, calculate and print this person's current age. Note 14 #that if their birth date has not yet passed this year, your 15 #result would be one less than if it has. 16 # 17 #For example, with the variables given above, the person 18 #would turn 28 on December 12th, 2018. So, as of May 31st, 19 #2018, they are 27. 20 21 22 #Add your code here! 23 24 25 tin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
