Skip to content

Commit 8c17382

Browse files
Create Python Program to Find the Square Root.py
1 parent b8449a7 commit 8c17382

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Python Program to calculate the square root
2+
3+
# Note: change this value for a different result
4+
5+
num = 8
6+
7+
# To take the input from the user
8+
9+
#num = float(input('Enter a number: '))
10+
11+
num_sqrt = num ** 0.5
12+
13+
print('The square root of %0.3f is %0.3f'%(num ,num_sqrt))
14+

0 commit comments

Comments
 (0)