Skip to content
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

ATM Problem solved in Python #736

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bhavikb07
Copy link

Solved ATM problem in Python version 3

Solved ATM problem in Python version 3
The function for binary to decimal is working all good except the fact that it takes the answer from the previous result and merge the answer . But it will work fine for separate calling of the function.
Like for eg:
print(Binary(23))
print(Binary(21))   will lead you to correct answer for 23 but wrong for 21.
so try:
for i in range(21,24,2):
s=""
print(Binary(i))
@itaniyagupta
Copy link
Member

Solved ATM problem in Python version 3

Can you please change location of ATM problem to solutions/open challenge directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants