mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
trying to pass test.
This commit is contained in:
@@ -36,7 +36,7 @@ def combineTerms(string):
|
||||
for i in range(11):
|
||||
if len(dict_power_wise_terms[i]) != 0:
|
||||
total = sum(dict_power_wise_terms[i])
|
||||
final_string += str(total)+"x^" + str(i) + " + "
|
||||
final_string += str(total) + "x^" + str(i) + " + "
|
||||
final_string = '+'.join(final_string.split("+")[:-1])
|
||||
return final_string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user