def printPicnic(itemsDict, leftWidth, rightWidth):
    print('PICNIC ITEMS'.center(leftWidth + rightWidth, '-'))
    for k, v in itemsDict.items():
        print(k.ljust(leftWidth, '.') + str(v).rjust(rightWidth))

picnicItems = {'sandwiches': 12, 'apples': 15, 'cookies': 9000, 'cups': 4, 'bananas': 15, 'peaches': 13}
printPicnic(picnicItems, 12,5)
printPicnic(picnicItems, 20,6)