title: How to create a decision table for the following code
body: <p>I am attempting to create a decision table for a Triangle Classification Program, code shown below.  <strong><em>UPDATE</em></strong></p>
  
  <pre><code>def tritype(a, b, c):
      if ((a ^ 2 + b ^ 2) == c^2):
          return "Right Triangle"
      if ((a + b) == c):
          return "Isosceles Triangle"
      if (a + b &gt; c):
          return "Scalene Triangle"
      if ((a == b) and (b == c) and (a == c)):
          return "Equilateral Triangle"
      if ((a &lt; 1) or (b &lt; 1) or (c &lt; 1)):
          return "Negative Lenght Error"
      else:
          return "Invalid Triangle Error"
  </code></pre>
  
  <p>Here is what I have so far</p>
  
  <p>Step 1: List all conditions and effects:</p>
  
  <pre><code>C1  A2 + B2 = C2
  C2  A + B &gt; C
  C3  A = C
  C4  A  B = C
  C5  A || B || C &lt; 1
  C6  A + B &lt; C
  E1  “Invalid Negative Length Error”
  E2  “Invalid Triangle Error”
  E3  “Right Triangle”
  E4  “Isosceles Triangle”
  E5  “Equilateral Triangle”
  E6  “Scalene Triangle”
  </code></pre>
  
  <p>I'm unsure how to put the above information into the table itself.</p>