python-dev avatar

Python Program to Find the Square Root

python-dev

Published: 21 Mar 2020 › Updated: 21 Mar 2020Python Program to Find the Square Root

Python Program to Find the Square Root

# Python Program to calculate the square root

# Note: change this value for a different result
num = 8 

# To take the input from the user
#num = float(input('Enter a number: '))

num_sqrt = num ** 0.5
print('The square root of %0.3f is %0.3f'%(num ,num_sqrt))

Leave Python Program to Find the Square Root to:

Written by

Read more #num posts


Best Posts From python-dev

We have not curated any of python-dev's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From python-dev