Skip to content

Commit

Permalink
Create squareroot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreya Mukhopadhyay authored Oct 17, 2023
1 parent 80d3d7d commit 0d1a1c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions squareroot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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))

0 comments on commit 0d1a1c5

Please sign in to comment.