Oct-18-2018, 06:07 AM
Hi^^
I have troubles to find my mistake within following code:
It just would not execute.
Anyone could help out and hint me where I got it wrong?
Regards,
Placebo
I have troubles to find my mistake within following code:
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': 4, 'apples': 12, 'cups': 4, 'cookies':8000} printPicnic(picnicItems, 12, 5) printPicnic(picnicItems, 20, 6)I have checked the code line by line several times and compared to the description my my study book, but could not spot my mistake.
It just would not execute.
Anyone could help out and hint me where I got it wrong?
Regards,
Placebo