fork download
  1. print(repr(9**0.5), repr(0**0.5), repr((-9)**0.5))
  2.  
  3. import cmath
  4. print(repr(cmath.sqrt(9)), repr(cmath.sqrt(0)), repr(cmath.sqrt(-9)))
  5.  
Success #stdin #stdout 0.02s 5868KB
stdin
Standard input is empty
stdout
3.0 0.0 (1.836909530733566e-16+3j)
(3+0j) 0j 3j