How to calculate square root of a number in python?

0 votes
May 4, 2018 in Python by ana1504.k
• 5,910 points

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

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

import math

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
>>> math.sqrt(3)

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
0 answers

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

Is there a built-in module in python ...READ MORE

4 days ago in Python by Waseem
• 1,910 points
0 votes
1 answer

How to print first character of each word in upper case of a string in Python

You can use split() using space as ...READ MORE

answered Jun 1, 2018 in Python by george
• 200 points
0 votes
1 answer

How to get the size of a string in Python?

If you are talking about the length ...READ MORE

answered Jun 4, 2018 in Python by ariaholic
• 7,320 points
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 920 points
+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
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

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.