Skip to content

deleted binarysearch #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Programs/P11_BinaryToDecimal.py
Original file line number Diff line number Diff line change
@@ -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'''
Expand All @@ -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)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Pune, Maharashtra, India.<br />
## 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

Expand Down