# Calculate how much length of hair I loose in a year # hu_01 #Assumption 1: I loose 100 strands of hair a week #Assumption 2: My hair grows at a rate of 1cm/month, so 0,25cm/week #Assumption 3: My hair has a starting length of 30cm #Assumption 4: I get a hair cut every 3 months, reducing the length of hair back to 30cm #Length of hair lost in week X = lossX #defining the length of hair lost in a given week week during the 3 months between two haircuts: loss1 = 100*30 loss2 = loss1 + 30*0.25 loss3 = loss2 + 30*0.25 loss4 = loss3 + 30*0.25 loss5 = loss4 + 30*0.25 loss6 = loss5 + 30*0.25 loss7 = loss6 + 30*0.25 loss8 = loss7 + 30*0.25 loss9 = loss8 + 30*0.25 loss10 = loss9 + 30*0.25 loss11 = loss10 + 30*0.25 loss12 = loss11 + 30*0.25 #length of hair lost over 3 months from haircut to da before a haircut: loss = loss1 + loss2 + loss3 + loss4 + loss5 + loss6 + loss7 + loss8 + loss9+ loss10 + loss11 + loss12 print "Length of hair lost over the course of 1 year =", loss*4/100, "m" #loss is only the length of hair lost in 3 months, we must multiply it by 4 to get the result for a year