How to calculate square root of a number in python?

0 votes
May 4, 2018 in Python by ana1504.k
• 7,890 points
311 views

2 answers to this question.

0 votes

Use the math module and calculate the square root of any number. Example: calculating square root of 25.

import math
print(math.sqrt(25))

Output - 5.0
answered May 4, 2018 by aayushi
• 750 points
0 votes

calculate square root in python

>>> import math # here import(download) math module
>>> math.sqrt(10)# here sqrt()is a method
3.1622776601683795
>>> math.sqrt(3)
1.7320508075688772 

following way to find square root in python so ifyou are interested to learn python concept and more about sqrt() method than you can join industrial training in python.

answered Apr 2 by anonymous

Related Questions In Python

0 votes
2 answers
0 votes
1 answer

How can I find the square of a number in python?

You can use the exponentiation operator or ...READ MORE

answered May 20 in Python by Mohammad
• 3,170 points
52 views
0 votes
1 answer

How to find exponent of a number in Python?

Yes you can do it using the ...READ MORE

answered Jul 2 in Python by Arvind
• 2,960 points
37 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 420 views
+4 votes
6 answers
0 votes
1 answer

How to add a new line in Python?

You can use '\n' for a next ...READ MORE

answered May 2, 2018 in Python by aayushi
• 750 points
141 views
0 votes
1 answer

how to find factorial of a number?

You can find factorial by many ways. ...READ MORE

answered May 4, 2018 in Python by aayushi
• 750 points
50 views