Top answers


Given a list of N numbers, use a single list comprehension to produce a new list that only contains those values that are: (a) even numbers, and (b) from elements in the original list that had even indices .

A simple solution to this problem would be as follows [x for x in list[::2] if x%2 == 0] For example, given the following list: list = [ 1 , 3 , 5 , 8 , 10 , 13 , 18 , 36 , 78 ] The list comprehension [x for...
WA
Answered by Waseem A. Python tutor
3414 Views

Explain what is in one molecule of Sodium sulphide (Na2SO4)

The Na2 tells us there are 2 sodium atoms present, The S tells us there is one Sulphur atom presentThe O4 tells us there are four oxygen atoms presentTherefore, each molecule of Sodium Sulphide contains, 2 s...
JM
Answered by Jamie M. Chemistry tutor
2682 Views

If a person weighs 400N and the total area of their feet is 120cm^2, what is the pressure they are exerting on the ground?

The formula for pressure is Pressure = Force / AreaIf the force is 400N and the area is 120 cm 2 , the pressure is equal to 400/120, which is 3.33 N/cm 2
JM
Answered by Jamie M. Physics tutor
2244 Views

A linear equation has terms: a+2b, a + 6b, a + 10b, ......., ........ the second term equals 8 and the fifth term equals 44. Work out the value of a & b

We are given the second term both as a number and an equation, so we can saya + 6b = 8We can then estimate the fifth term by continuing the pattern of adding 4b to each term in the sequence, which gives:Thir...
JM
Answered by Jamie M. Maths tutor
3024 Views

Discuss the role of enzymes in digestion (4)

Protein Breakdown --- > via prote ase in stomach and pancreas, breaking down protein to amino acids Lipid Breakdown ---> via lip ases in pancreas, breaking down lipids into fatty acids or glycerol Star...
SB
Answered by Shiv B. Biology tutor
2238 Views