0

Как написать √ в puthon?

Помогите написать √а^2+b^2

22nd Mar 2020, 11:42 AM
Sasha Khovanets
Sasha Khovanets - avatar
2 Answers
+ 1
(a**2+b**2)**(1/2) or math.sqrt(a**2+b**2) if u wanna use ready functions don't forget to import math library
22nd Mar 2020, 1:25 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
math.sqrt(a**2+b**2)
22nd Mar 2020, 1:25 PM
Aleksandra Krawiec
Aleksandra Krawiec - avatar