Working out solutions for Advent of Code
				
			 
			
		 
		
		
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
						
							| 12345678910 | def main():
    with open("01ain.txt", "r") as file:
        lines = file.readlines()
    masses = [int(x) for x in lines]
    fuels = [(x//3) - 2 for x in masses]
    print(fuels)
    print(sum(fuels))
if __name__ == "__main__":
    main()
 |