if (x >= 0): sqrtX=math.sqrt(x) print "the square root of x is ", x elif (x >= -100): print "the square root cannot be calculated since x is negative!" print "note that x is between -10 and 0" else: print "the square root cannot be calculated since x is negative!" print "note that x is less than -100"