How to calculate square root of a number in python

0 votes
May 4, 2018 in Python by ana1504.k
• 7,910 points
5,880 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, 2019 by anonymous

Related Questions In Python

–1 vote
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 21, 2019 in Python by Mohammad
• 3,230 points
1,262 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, 2019 in Python by Arvind
• 3,050 points
2,318 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,464 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,123 views
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
1,277 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
1,724 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP