column of tableand rightwidth for the right column it prints titlepicnic itemscentered above the table thenit loops through the dictionaryprinting each key-value pair on line with the key justified left and padded by periodsand the value justified right and padded by spaces after defining printpicnic()we define the dictionary picnicitems and call printpicnic(twicepassing it different widths for the left and right table columns when you run this programthe picnic items are displayed twice the first time the left column is characters wideand the right column is characters wide the second time they are and characters widerespectively ---picnic items-sandwiches apples cups cookies picnic itemssandwiches apples cups cookies using rjust()ljust()and center(lets you ensure that strings are neatly alignedeven if you aren' sure how many characters long your strings are removing whitespace with the strip()rstrip()and lstrip(methods sometimes you may want to strip off whitespace characters (spacetaband newlinefrom the left sideright sideor both sides of string the strip(string method will return new string without any whitespace characters at the beginning or end the lstrip(and rstrip(methods will remove whitespace characters from the left and right endsrespectively enter the following into the interactive shellspam helloworld spam strip('helloworldspam lstrip('helloworld spam rstrip(helloworldoptionallya string argument will specify which characters on the ends should be stripped enter the following into the interactive shellspam 'spamspambaconspameggsspamspamspam strip('amps''baconspameggs