Python Vending Machine Code Hackerrank Log