class_docstr: A simple Monomial class to
  record the details of all variables
  that a typical monomial is composed of.
class_docstr_tok: ["A","simple","Monomial","class","to","record","the","details","of","all","variables","that","a","typical","monomial","is","composed","of","."]
docstr: Get a string representation of
  the monomial.
docstr_tok: ["Get","a","string","representation","of","the","monomial","."]
code: def __str__(self) -> str:
      """
      Get a string representation of
      the monomial.
      """
      if len(self.variables) == 0:
          return str(self.coeff)
  
      result = str(self.coeff)
      result += "("
      for i in self.variables:
          temp = "a_{}".format(str(i))
          if self.variables[i] > 1:
              temp = "(" + temp + ")**{}".format(self.variables[i])
          elif self.variables[i] < 0:
              temp = "(" + temp + ")**(-{})".format(-self.variables[i])
          elif self.variables[i] == 0:
              continue
          else:
              temp = "(" + temp + ")"
          result += temp
      return result + ")"
  
imports: from fractions import Fraction
  from typing import Dict, Union, Set, Iterable
  from numbers import Rational
  from functools import reduce
label_desc: Use image node_id 16 for calling the Monomial obj's underlying member method code with example usage: obj.__str__() and returns: unknown, str