title: How can I keep a number as root out of x
body: <p>So my code looks like this , with comments :</p>
  
  <pre><code>import math
  
  
  #I want to do this : If the figure is a triangle it's side , noted with l = r(Stands for radius) square root 3 
  #another thing(Which I don't know how to spell in english) , noted with a = r/2 , it's area based on the side(noted with Al)
  # = (l**2*Square root of 3) / 4 and it's area based on the radius = (3r**2*Square root of 3)/4
  
  #My problem is that I want to keep the square root of 3 as a number without .07214214312412etc. and if it isn't a perfect
  #square keep it like root3 , or something like that if it's possible
  
  figure = input("What is the figure?")
  figure = figure.lower()
  r = int(input("What is the radius?"))
  if figure == "triangle" :
      l = str(r) + " Square root of 3"
      a = int(r) / 2
      l = float(l)
      Al = str((l**2/4)) + " Square root of 3"
      Ar = str(3*r**2/4) + " Square root of 3"
  </code></pre>