Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started