Perché Python dà la risposta "sbagliata"?
x = 16
sqrt = x**(.5) #returns 4
sqrt = x**(1/2) #returns 1
Sì, lo so import mathe uso sqrt. Ma sto cercando una risposta a quanto sopra.
import mathe x = math.sqrt(25)che assegnerà il valore 5.0a x.