def main(): theCompressor = Compresser() # create a Compressor object theHopper = Hopper() # create a Hopper object theHopper.fill_coal() # fill out the Hopper object with coal # loop through and have the Compressor object take coal out of the Hopper # and compress it. for i in range(10): print(theHopper) theCompressor.get_coal(theHopper) theCompressor.compress() print(theCompressor)