Question: The program is to output a list elements using for loop To complete the program Example 1: * Create a module named h04_01.py from the
The program is to output a list elements using for loop
To complete the program Example 1:
* Create a module named h04_01.py from the directory hw
* Record your name, class number, and date of creation.
* Create an empty list ready to add fruit names
* Ask the user to provide names of their three favorite fruits
* Add the names of the fruits to the list you just created.
* Print your list
* Using a for loop to print each fruit name in the list like: xxx is your favorite fruit
Paste the captured screen here for the example 1:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
