day6/part2.py
def start_spawning(days, day_keys):
    """Calculate every day key for "1" fish number. Other fishes are then get by offsetting
    day keys dictionary."""
    day_keys[0] = 1
    days_fish_count = {0: 0, 1: 1, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0}
    for day in range(1, days + 1):
        day_keys[day] = days_fish_count[0]
        days_fish_count[OLD_FISH + 1] += days_fish_count[0]
        days_fish_count[NEW_FISH + 1] += days_fish_count[0]
        for i in range(NEW_FISH + 1):
            days_fish_count[i] = days_fish_count[i + 1]
            days_fish_count[i + 1] = 0
    return day_keys
Calculate every day key for "1" fish number. Other fishes are then get by offsetting
    day keys dictionary.
Calculate every day key for "1" fish number. Other fishes are then get by offsetting
day keys dictionary.
Calculate every day key for " 1 " fish number . Other fishes are then get by offsetting day keys dictionary .
def start_spawning(days, day_keys):
    day_keys[0] = 1
    days_fish_count = {0: 0, 1: 1, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0}
    for day in range(1, days + 1):
        day_keys[day] = days_fish_count[0]
        days_fish_count[OLD_FISH + 1] += days_fish_count[0]
        days_fish_count[NEW_FISH + 1] += days_fish_count[0]
        for i in range(NEW_FISH + 1):
            days_fish_count[i] = days_fish_count[i + 1]
            days_fish_count[i + 1] = 0
    return day_keys
def start_spawning ( days , day_keys ) : day_keys [ 0 ] = 1 days_fish_count = { 0 : 0 , 1 : 1 , 2 : 0 , 3 : 0 , 4 : 0 , 5 : 0 , 6 : 0 , 7 : 0 , 8 : 0 , 9 : 0 } for day in range ( 1 , days + 1 ) : day_keys [ day ] = days_fish_count [ 0 ] days_fish_count [ OLD_FISH + 1 ] += days_fish_count [ 0 ] days_fish_count [ NEW_FISH + 1 ] += days_fish_count [ 0 ] for i in range ( NEW_FISH + 1 ) : days_fish_count [ i ] = days_fish_count [ i + 1 ] days_fish_count [ i + 1 ] = 0 return day_keys
Calculate every day key for "1" fish number.
Calculate every day key for " 1 " fish number .
"""Calculate every day key for "1" fish number. Other fishes are then get by offsetting
    day keys dictionary."""
days
day_keys