title: square root python error bool object has no attribute 'sqrt'
body: <p>i'm relatively new to python, and I am trying to make a geometry calculator, but for the distance formula you need to square root things.  But whenever I try to do it, it comes up with this error:
  Traceback (most recent call last):
  File "python", line 27, in 
  AttributeError: 'bool' object has no attribute 'sqrt'
  I really appreciate all help in advance, and here is my code:</p>
  
  <pre><code>math = True
  while math == True:
      Shape = input("GREETINGS HUMAN, I AM JERAXXUS EREDON LORD OF THE BURNING LEGION, what's your geometry question?")
      if Shape =='triangle':
          q1 = input("AREA OR PERIMETER?")
          if q1 == 'area':
              user_input = input("BASE AND HEIGHT PLZ, COMMAS INBETWEEN")
              X = str.split(user_input)
              print(X[0]*X[1]/2)
          if q1 == 'perimeter':
              q2 = input("do you have side lengths???")
              if q2 == 'yes':
                  SL = input("please put in Side lengths")
                  SL = str.split(SL)
                  print(SL[0]+SL[1]+SL[2])
              if q2 == 'no':
                  CD = input("Please put in coordinates")
                  CD = str.split(CD)
                  cd1 = int(CD[0])
                  cd2 = int(CD[1])
                  cd3 = int(CD[2])
                  cd4 = int(CD[3])
                  cd5 = int(CD[4])
                  cd6 = int(CD[5])
                  f1 = cd1^2*cd3^2+cd2^2*cd4^2
                  f1 = int(f1)
                  s1 = math.sqrt(f1)
                  print(s1)
  </code></pre>