Maybe I'm not seeing what the problem is because I've been thinking of the question all day long and I've already gotten help (but thought I could get the other part of this myself.) I'm trying to get
Day Salary Total Pay
______________________________
1 .01 .01
2 .02 .03
3 .04 .07
4 .08 .15
5 .16 .31
etc
but I'm having a hard time with the total pay part of the math.
for days in range(1, days + 1):
for days in range(1, days + 1):
for days in range(1, days +1):
salary = .01*2**(days-1)
total_pay = salary*.01*2**(days-1)
This is what I have so far, but I can't for the life of me get the math to sort out. I can get close with what I have, but not what I need. Everything else works, but that total pay. would greatly appreciate any help with such a simple problem.