0
Q:

python square

import math

toSquare = 300
squared = math.sqrt(toSquare)
20
import math
a = input("what do you wnat to square root")
print(math.sqrt(a))
7
import math

8 * 8          # 64
8 ** 2.        # 64
math.pow(8, 2) # 64.0
3
#use the ** operator
3 ** 2
0
#use ** instead of ² or ^2
0
to_square = (2)
squared = (to_square*to_square)
-1

New to Communities?

Join the community