0
Comment faire la racine carré sur python
2 ответов
+ 1
import math
number = int(input("enter a number:"))
sqrt = math.sqrt(number)
print("square root:" , sqrt)
+ 1
# or:
number = int(input("enter e number: "))
sqrt = number**0.5
print("square root:",sqrt)
# shorter and no import ;)