Please, need help for Python question Thank You A few notes: Do NOT perform any
ID: 639170 • Letter: P
Question
Please, need help for Python question
Thank You
A few notes:
Do NOT perform any algebra on the expressions. Just translate them into Python
Do not put in more parentheses than needed. If precedence rules will handle it, don't add parentheses. (partial credit for too many parens)
Spaces won't make the answer wrong or right. So, don't worry about whether to put spaces around the operators. However, I do encourage you do be symmetric. So, a+b and a + b are both fine; a+ b and a +b are still correct, but less desirable.
This quiz will need to be graded manually.
For example:
If the given expression is 3x+5x+2:
The correct answer would be 3 * x + 5 * x + 2.
The answer 8 * x + 2 would be wrong. (algebraic manipulation occurred)
The answer (3*x) + (5*x) + 2 would get partial credit. (unneeded parentheses)
?
1. 5x + 5y
2.a2
Explanation / Answer
1.) 5 * x + 5 * y
2.) a**2 - b**2
3.) 2.5 * j**1.5 * k**1.5
4.) 2 * p**3 * q**2 + 3 * p**2 * q**3
5.) (x - 2) * (x + 3)
6.) 3*x**(2*n+5)
7.) (a - b)**2 / (a**2 - b**2)
8.) (a**2 + b**2) / (a**2 - b**2)
9.) ((n**2 + 4) / (n -2))**3
10.) - 5 * b**1/3