Skip to content

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