Question: Looping through the content of a list, using python ; Create a list with the following values: Jim, James, Jack, John, Jason. Call it boylist.
Looping through the content of a list, using python;
-
Create a list with the following values: Jim, James, Jack, John, Jason. Call it boylist.
-
Using the command enumerate print the variables so you keep track of the position of the various items in the list
- Print the following statement: Index i is Name in my list.
-
Create a list with the following values: Emma, Clara, Susan, Jill, Lisa. Call it girllist.
-
Using the command zip combine the couples
- Print the following statement: boyname and girlname form a nice couple.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
