Top answers


Use recursion to print all the sublists of a given list

def withoutIndex (lst, i): return lst[ : i] + lst[i + 1 : ]def printSublists(lst): print(lst) for i in range(len(lst)): printSublists(withoutIndex(lst, i))printSublists([1, 2, 3])
NM
Answered by Nikolai M. • Python tutor
1978 Views

Find y if dy/dx = y² sec²(x), given that y(0) = 1

1/y² dy/dx = sec²(x)∫ 1/y² dy/dx dx = ∫ sec²(x) dx-1/y + C 1 = tan(x) + C 2 y = -1/(tan(x) + A) where A = C 2 - C 1 y(0) = -1/A so y(0) = 1 means A = -1. Finished!
NM
Answered by Nikolai M. • Maths tutor
4272 Views

Expand the brackets (3x^2 + 6x + 7)(x - 3)

To help the student understand how to expand the brackets I would start by splitting the equation to:3x 2 (x - 3) + 6x(x - 3) + 7(x - 3)I then would ask the student to expand these brackets to:3x 3 - 9x 2 + ...
JD
Answered by Jasmine D. • Maths tutor
3918 Views

what is palaeomagnetism

Palaeomagnetism deals with the past magnetic states of the earth. In the 1900's geographers were interested in the mid Atlantic ridge, its on a constructive plate margin, meaning the crust further away from ...
AW
Answered by Alex W. • Geography tutor
5893 Views

Name 3 organelles found in animal cells.

Rough endoplasmic reticulum, Mitochondria, Golgi apparatus
DF
Answered by Darragh F. • Biology tutor
3308 Views