I Haz Codes
The code below is for a simple vending machine. Each item in the list represents a coin. If the coins 20p, 50p and two £1 coins were added, the list would be
coins = [20,50,100,100,0,0,0,0,0,0]
Change the code below –
coins = [0,0,0,0,0,0,0,0,0,0]
x = ????
sum = 0
while ?????? :
sum = sum + coins[????]
x= ??????
print (sum)

You need to log in or create an account to submit code!
| levelcap115 | milokavanagh |
| shinx284680 | san |