Answers for "square in pythoin"

6

python square a number

import math

8 * 8          # 64
8 ** 2.        # 64
math.pow(8, 2) # 64.0
Posted by: Guest on March-07-2020
0

Square a number in python

n = 5
result = pow(n, 2)
print(result)
Posted by: Guest on November-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language