Top answers


Explain why creating a list of several instances of one element using something like my_list = [a] * 5 can result in strange behaviour

A good example for this would be>>> a = [0]>>> l = [a] * 5>>> l[[0], [0], [0], [0], [0]]>>> l[0][0] = 1>>> l[[1], [1], [1], [1], [1]] You can see how creating a l...
GM
Answered by Gustas M. Python tutor
1781 Views

find the derivative of f(x) = x^3 + 2x^2 - 5x - 6. Find all stationary points of the function.

Calculate the derivative using the standard rules, in particular (x n )' = nx n-1 . f(x)' = 3x 2 + 4x - 5 Stationary points are where the derivative is equal to 0, i.e. all x such that f(x)' = 0, so solving ...
GM
Answered by Gustas M. Maths tutor
5458 Views

Show how you can rewrite (x+1)(x-2)(x+3) into the form of ax^3 + bx^2 + cx + d

Split the first equation into three parts, i.e. (x+1), (x-2) and (x+3). Multiply the first two parts to get x 2 - x - 2 , then multiply the result with the third part to get x 3 + 2x 2 - 5x - 6 . All that is...
GM
Answered by Gustas M. Maths tutor
4271 Views

Explain the concept of 'original intent' in the Judicial Philosophy of the US Supreme Court

As set out in Article III the judicial branch's role is to protect the constitution and the rights and civil liberties of the people; in doing so judges are granted the right to interpret the constitution (j...
SA
2350 Views

Explore the use of symbolism in Othello.

Symbolism in Othello is often used to reflect on the flaws and perspectives of Shakespeare's contemporary society; Shakespeare also employs symbolism in highlighting the inner lives of his characters as well...
SA
7261 Views