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;

  1. Create a list with the following values: Jim, James, Jack, John, Jason. Call it boylist.

  2. 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.
  1. Create a list with the following values: Emma, Clara, Susan, Jill, Lisa. Call it girllist.

  2. 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

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!