Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

Students also viewed these Databases questions