+ 4

there is a sing to a square root in Python?

if there isn't, what should I write?

11th Jun 2018, 9:32 PM
I -_- D
I -_- D - avatar
8 Answers
+ 2
I -_- D : 10**2 = 100 100**0.5 = 10 5**2 = 25 25**0.5 = 5 https://code.sololearn.com/cUSTbD3gh6Lj/?ref=app
13th Jun 2018, 2:55 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 6
Ulisses Cruz thank you.
13th Jun 2018, 3:02 PM
I -_- D
I -_- D - avatar
+ 3
try: x**.5
11th Jun 2018, 10:17 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 3
Ulisses Cruz Louis I didn't understood both of you.
12th Jun 2018, 6:03 AM
I -_- D
I -_- D - avatar
+ 2
I -_- D if you have a number in a variable 'x' and you want to take the square root of 'x' just do it like this: sqrt_root_of_x = x**0.5
12th Jun 2018, 2:54 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
Ulisses Cruz can you use google translation? כשאני כותב את זה בדיןק כמו שכתבת, אז יש איזושהי בעיה, לא יודע איזה בדיוק. ואם זה לא היה ברור, בגלל התרגום, התכוונתי לשןרש, לדוגמא: שורש של 25 זה 5. ושורש של 100 זה 10. (10**2=100)
12th Jun 2018, 9:53 PM
I -_- D
I -_- D - avatar
+ 1
x**.5 or from math import sqrt sqrt(x) i think
13th Jun 2018, 5:40 PM
Nicolass22
Nicolass22 - avatar
0
you may be interested in the timed versions of sqrt https://code.sololearn.com/cdyYLvewbn3J/?ref=app
12th Jun 2018, 4:34 AM
Louis
Louis - avatar