Does $x \times \sqrt x = x$?

I thought it was correct because sqrt is the opposite of multiplying by a number, so I figured by multiplying by a number it would balance out and be that number normally, but when I tried it with my Python calculator using 3 I got:

> 
> math.sqrt(3) \* 3
>    
> 
>  5.196152422706632
> 
> 
>