import time a = input("How many days a week would you like to eat chocolate? ") b = input("Have you had your birthday yet this year(1=yes 0=no)? ") d = input("Enter your Date of Birth(year only) ") if b == 1: e = 1757 elif b == 0: e = 1756 c = ((a*2+5)*50+e)-d print "This is the first step. Muiltiplying your number by 2 which =", a*2 time.sleep(3) print "Now we add five to your number which =", (a*2)+5 time.sleep(3) print "Now we mulitply your number by 50 which =", (a*2+5)*50 time.sleep(3) print "Now we add 1757 if you have had your birthday or 1756 if you have not =", (a*2+5)*50+e time.sleep(3) print "Lastly we subtract your year of birth from your number which =",c time.sleep(3) print "If you notice your number now is split into two parts. The first part is how many times you would like to eat chocolate a week and the second is your age." raw_input("Hit Enter to Quit")
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.