Question: Example 1 : The program is to output a list elements in a specific format. To complete the program * Create a module named h03_01.py

Example 1 :

The program is to output a list elements in a specific format.

To complete the program

* Create a module named h03_01.py from the directory hw

* Record your name, class number, and date of creation.

* Create a list contains the following shopping item: 'apples'

* Add three other items to the list: 'bananas', 'tofu', and 'milk'.

* Print list as a string with all the shopping items separated by a comma, a whitespace and a and before the last item: apples, bananas, tofu, and milk

Paste the captured screen here

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 Databases Questions!