Question: Using python, how to divide all elements in a certain column in a list by an element from another list of the respective column number.

Using python, how to divide all elements in a certain column in a list by an element from another list of the respective column number. For example, I have two list called List1 and List2, and I want to divide all elements in a column of List1 by the respective element entry in List 2. To clarify with example, I want the output to be for the new list, called List3, as:

List3=

[[6.83/402, 10.11/407, 10.67/395]

[8.77/402, 13.85/407, 10.79/395]

[14.2/402, 18.75/407, 11.21/395]]

.

List1=

[[ 6.83 10.11 10.67]

[ 8.77 13.85 10.79

[14.2 18.75 11.21]]

List2=

[402, 407, 395]

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!