Can somebody please Explain How that works? >>> 9 ** (1/2) 3.0
2/9/2020 2:00:44 PM
Muhammad Abdullah1 Answer
New AnswerThe ** is the power operator. So 3**2 is 3 squared (3x3) which is 9. 9 ** (1/2) is then the square root of 9, which is 3. Notice that, like division in python, it returns a float, not an int.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message