diff --git a/Programs/P11_BinaryToDecimal.py b/Programs/P11_BinaryToDecimal.py index 7304c79..47ef81d 100644 --- a/Programs/P11_BinaryToDecimal.py +++ b/Programs/P11_BinaryToDecimal.py @@ -1,5 +1,4 @@ -#Author: OMKAR PATHAK -#This program converts the given binary number to its decimal equivalent + def binaryToDecimal(binary): '''This function calculates the decimal equivalent to given binary number''' @@ -13,5 +12,5 @@ def binaryToDecimal(binary): print('Decimal equivalent of {} is {}'.format(binary1, decimal)) if __name__ == '__main__': - userInput = int(input('Enter the binary number to check its decimal equivalent: ')) - binaryToDecimal(userInput) + n = int(input('Enter the binary number to check its decimal equivalent: ')) + binaryToDecimal(n) diff --git a/README.md b/README.md index c79a6c5..d932d99 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ Pune, Maharashtra, India.
## Searching Algorithms 1. [Sequential Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P22_SequentialSearch.py) -2. [Binary Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P23_BinarySearch.py) -3. [N-ary Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P35_NarySearch.py) + +2. [N-ary Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P35_NarySearch.py) ## Data Structures