File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,15 +158,15 @@ def __multiply(self):
158158
159159 # Overwrite __str__ for print(); Shows A, B and A*B
160160 def __str__ (self ):
161- a = "A = " + " + " .join (
162- f"{ coef } *x^{ i } " for i , coef in enumerate (self .polyA [: self .len_A ])
163- )
164- b = "B = " + " + " .join (
165- f"{ coef } *x^{ i } " for i , coef in enumerate (self .polyB [: self .len_B ])
166- )
167- c = "A*B = " + " + " .join (
168- f"{ coef } *x^{ i } " for i , coef in enumerate (self .product )
169- )
161+ a = "A = " + " + " .join (
162+ f"{ coef } *x^{ i } " for i , coef in enumerate (self .polyA [: self .len_A ])
163+ )
164+ b = "B = " + " + " .join (
165+ f"{ coef } *x^{ i } " for i , coef in enumerate (self .polyB [: self .len_B ])
166+ )
167+ c = "A*B = " + " + " .join (
168+ f"{ coef } *x^{ i } " for i , coef in enumerate (self .product )
169+ )
170170
171171 return f"{ a } \n { b } \n { c } "
172172
You can’t perform that action at this time.
0 commit comments