if (x >= 0): sqrtX=math.sqrt(x) print "the square root of x is ", x else: print "the square root cannot be calculated since x is negative!"