Question: Please help me fix my code in python!: def print _ poly ( polynomial ) : terms = [ ] degree = len ( polynomial
Please help me fix my code in python!:
def printpolypolynomial:
terms
degree lenpolynomial
for exp in rangedegree:
coef polynomialexp
if coef :
sign if coef and lenterms else if coef else # Determine sign
coefficient abscoef
if coefficient.isinteger:
coefficient intcoefficient
term fsign if coef and lenterms else coefficient if exp else fsign if coef and lenterms else coefficientx if exp else fsign if coef and lenterms else coefficientxexp
terms.appendterm
printedpolynomial jointerms
printprintedpolynomial
I need it to simplify x to just be x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
