Satchel = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1}
def displayInventory(inventory, leftWidth, rightWidth):
print('INVENTORY'.center(leftWidth + rightWidth, '-'))
for k, v in inventory.items():
print(k.ljust(leftWidth, '.') + str(v).rjust(rightWidth))
item_total = int(item_total) + int(v)
print('Total number of items: ' + str(item_total)
displayInventory(Satchel, 15, 6)
I receive a syntax error when I call the displayInventory function. I am having trouble determining what is wrong with this code.