Question: Three strings are read from input and stored into list produce. Then, three more strings are read from input and stored into list inventory. Lastly,

Three strings are read from input and stored into list produce. Then, three more strings are read from input and stored into list inventory. Lastly, string separator_char is read from input. Use five print(f'') statements to output the following five lines:
"Produce", with a field width of 25, centered, and followed by '|'. Then "Inventory", with a field width of 25, centered.
50 instances of separator_char.
produce[0], with a field width of 25, left-aligned, and followed by '|'. Then, inventory[0] with a field width of 25, left-aligned.
produce[1], with a field width of 25, left-aligned, and followed by '|'. Then, inventory[1] with a field width of 25, left-aligned.
produce[2], with a field width of 25, left-aligned, and followed by '|'. Then, inventory[2] with a field width of 25, left-aligned.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!