Day1/day1.py
def calcFullFuel(mass):
    '''
    Fuel itself requires fuel just like a module - take its mass, divide by three, round down, and subtract 2. However, that fuel also requires fuel, and that fuel requires fuel, and so on. Any mass that would require negative fuel should instead be treated as if it requires zero fuel; the remaining mass, if any, is instead handled by wishing really hard, which has no mass and is outside the scope of this calculation.
    '''
    if mass <= 0:
        return 0
    else:
        fuel = calcFuel(mass)
        #print ("Fuel: {}".format(fuel))
        return fuel + calcFullFuel(fuel)

    Fuel itself requires fuel just like a module - take its mass, divide by three, round down, and subtract 2. However, that fuel also requires fuel, and that fuel requires fuel, and so on. Any mass that would require negative fuel should instead be treated as if it requires zero fuel; the remaining mass, if any, is instead handled by wishing really hard, which has no mass and is outside the scope of this calculation.
    
Fuel itself requires fuel just like a module - take its mass, divide by three, round down, and subtract 2. However, that fuel also requires fuel, and that fuel requires fuel, and so on. Any mass that would require negative fuel should instead be treated as if it requires zero fuel; the remaining mass, if any, is instead handled by wishing really hard, which has no mass and is outside the scope of this calculation.
Fuel itself requires fuel just like a module - take its mass divide by three round down and subtract 2 . However that fuel also requires fuel and that fuel requires fuel and so on . Any mass that would require negative fuel should instead be treated as if it requires zero fuel ; the remaining mass if any is instead handled by wishing really hard which has no mass and is outside the scope of this calculation .
def calcFullFuel(mass):
    if mass <= 0:
        return 0
    else:
        fuel = calcFuel(mass)
        return fuel + calcFullFuel(fuel)
def calcFullFuel ( mass ) : if mass <= 0 : return 0 else : fuel = calcFuel ( mass ) return fuel + calcFullFuel ( fuel )
Fuel itself requires fuel just like a module - take its mass, divide by three, round down, and subtract 2.
Fuel itself requires fuel just like a module - take its mass divide by three round down and subtract 2 .
'''
    Fuel itself requires fuel just like a module - take its mass, divide by three, round down, and subtract 2. However, that fuel also requires fuel, and that fuel requires fuel, and so on. Any mass that would require negative fuel should instead be treated as if it requires zero fuel; the remaining mass, if any, is instead handled by wishing really hard, which has no mass and is outside the scope of this calculation.
    ''' #print ("Fuel: {}".format(fuel))
mass