Key Features

Experienced Teachers
Smart Classes
Regular Test
Study Material

Well qualified teachers with industrial experience.

To visualise or understand topics very easly.

We are organizing online and offline regular test.

We are providing prescribed study material.

Wednesday, October 14, 2020

Python Program : To Find the Square Root

Question : Python Program : To Find the Square Root

PROGRAM

# 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))


OUTPUT

The square root of 8.000 is 2.828

No comments:

Post a Comment