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