Skip to content

0008 String to Integer(atoi) - Python #112

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

Merged
merged 3 commits into from
Nov 22, 2018
Merged

0008 String to Integer(atoi) - Python #112

merged 3 commits into from
Nov 22, 2018

Conversation

ashwek
Copy link
Member

@ashwek ashwek commented Nov 20, 2018

None.

Copy link
Member

@yanglbme yanglbme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, check your code, please.

Status: Runtime Error

Runtime Error Message:
Line 22: KeyError: '.'
Last executed input: "3.14159"

@ashwek
Copy link
Member Author

ashwek commented Nov 20, 2018

@yanglbme its String to Integer
so, for "3.14159" output should be 3 and NOT 3.14159 right?

@yanglbme
Copy link
Member

@ashwek
You are right.

Your input: "3.14159"
Expected: 3

Copy link
Member

@yanglbme yanglbme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtime Error

Line 8: IndexError: list index out of range
Last executed input: ""

@yanglbme yanglbme added the bug Something isn't working label Nov 21, 2018
@yanglbme yanglbme removed the bug Something isn't working label Nov 22, 2018
@yanglbme yanglbme merged commit b43d4f2 into doocs:master Nov 22, 2018
@ashwek ashwek deleted the AtoI branch November 22, 2018 16:14
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