8000 added square root using sqrt and updated readme file · danjethh/programminginpython.com@f3bb39b · GitHub
[go: up one dir, main page]

Skip to content

Commit f3bb39b

Browse files
committed
added square root using sqrt and updated readme file
1 parent 2af4746 commit f3bb39b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
This repo consists code of all the programs discussed at http://programminginpython.com/
33

44
## List of all the programs
5-
<ul><li><a href="http://programminginpython.com/python-program-largest-smallest-number-list/">Python program to find the largest and smallest number in a list</a></li><li><a href="http://programminginpython.com/biggest-smallest-3-numbers/">Python Program to find the Biggest and Smallest of 3 numbers</a></li><li><a href="http://programminginpython.com/python-check-armstrong-number/">Python Program to check Armstrong number or not</a></li><li><a href="http://programminginpython.com/python-program-check-palindrome/">Python program to check whether a number is Palindrome or not</a></li><li><a href="http://programminginpython.com/python-program-to-find-reverse-of-a-number/">Python program to find reverse of a number</a></li><li><a href="http://programminginpython.com/find-reverse-number-slice/">Python program to find reverse of a number using slice</a></li><li><a href="http://programminginpython.com/python-program-find-average-n-numbers/">Python program to find average of N numbers</a></li><li><a href="http://programminginpython.com/python-program-to-find-whether-a-number-is-even-or-odd/">Python Program to find whether an integer is even or odd number</a></li><li><a href="http://programminginpython.com/python-program-arithmetic-operations/">Python program for performing Arithmetic Operations</a></li><li><a href="http://programminginpython.com/python-lists-add-append-modify-remove-slice/">Python Lists – Add, Append, Modify, Remove, Slice</a></li></ul>
5+
<ul><li><a href="http://programminginpython.com/find-square-root-using-sqrt/">Find square root of a number using sqrt() function</a></li><li><a href="http://programminginpython.com/find-square-root-number-exponential-operation/">Find square root of a number using exponential operation</a></li><li><a href="http://programminginpython.com/python-program-calculate-sum-elements-list/">Python program to calculate the sum of elements in a list</a></li><li><a href="http://programminginpython.com/python-biggest-smallest-3-numbers-lists/">Python Program to find the Biggest and Smallest of 3 numbers using lists</a></li><li><a href="http://programminginpython.com/python-program-largest-smallest-number-list/">Python program to find the largest and smallest number in a list</a></li><li><a href="http://programminginpython.com/biggest-smallest-3-numbers/">Python Program to find the Biggest and Smallest of 3 numbers</a></li><li><a href="http://programminginpython.com/python-check-armstrong-number/">Python Program to check Armstrong number or not</a></li><li><a href="http://programminginpython.com/python-program-check-palindrome/">Python program to check whether a number is Palindrome or not</a></li><li><a href="http://programminginpython.com/python-program-to-find-reverse-of-a-number/">Python program to find reverse of a number</a></li><li><a href="http://programminginpython.com/find-reverse-number-slice/">Python program to find reverse of a number using slice</a></li></ul>

squareRoot_sqrt.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__author__ = 'Avinash'
2+
import math
3+
num = float(input('Enter a number: '))
4+
5+
print('The square root of %0.3f is %0.3f' % (num, math.sqrt(num)))

0 commit comments

Comments
 (0)
0