title: If Elif Else Chain To Classify Triangle (Python)
body: <pre><code>a = input("Please Enter Side  A ") 
  b = input("Please Enter Side  B") 
  c = input("Please Enter Side  C ") 
  
  d = a+b+c 
  
  if d &lt; (2*a) or d &lt; (2*b) or d &lt; (2*c): 
     print "Shame on you, that is not a triangle!" 
  elif (a==b==c): 
     print "It's Equilateral"  
  elif (a==b) or (a==c) or (b==c): 
     print "It's Isosceles"   
  </code></pre>
  
  <p>I have the following assignment that I'm having a hard to grasp on.  </p>
  
  <blockquote>
    <p>Ask the user to tell you the three angles of a triangle in degrees, minutes and seconds. Use an if-elif-else chain to classify the triangle:</p>
    
    <p>Compute the sum of the three angles. If the total of the angles equals 180° 0' 0"     [180 degrees, zero minutes, zero seconds], it is a Euclidean triangle. If the total of the angles exceeds 180° 0' 0", it cannot be a Euclidean triangle on a flat plane: it is “elliptical”, perhaps on a sphere, such as the surface a planet like that minor planet of an unremarkable sun in an obscure corner of a mediocre galaxy that is known as “Earth”. If the total of the angles is less than 180°, the triangle must be “hyperbolic”, on a concave surface, which might be the shape of our Universe. [For extra credit, you may resolve this question by drawing 2 parallel lines at least 732 gazillion light-years in each direction and determine if the lines in fact ever cross].</p>
    
    <p>In addition, classify the triangle as:</p>
    
    <p>Equilateral: all three angles are equal</p>
    
    <p>Isosceles: two and only two of the angles are equal</p>
    
    <p>Scalene: if it is neither equilateral nor isosceles</p>
    
    <p>Your program should say something like “That is a Euclidian Scalene Triangle” or “That is a Hyperbolic Equilateral Triangle”. You should tell the user what the total DMS (Degrees, Minutes, Seconds) is for the three angles.</p>
  </blockquote>
  
  <p>My question and guess is that I just need to include if elif else function and this is what I have so far above. I tried to add the angles instead of the lengths of the side, but I'm getting an error. How do convert the measurement of the angles into if they are isosceles, equilateral? Any inputs would be appreciated. Thank you very much for your time. </p>
  
  <pre><code>           (Deg)   (Min)   (Sec)
  Angle A      29       0      30
  Angle B      60      15      30
  Angle C      90      44       0                
  </code></pre>