Skip to content

Project Solution: read the ReadMe file for more information#43

Open
afmarquezm11 wants to merge 1 commit intoHedgeApple:masterfrom
afmarquezm11:master
Open

Project Solution: read the ReadMe file for more information#43
afmarquezm11 wants to merge 1 commit intoHedgeApple:masterfrom
afmarquezm11:master

Conversation

@afmarquezm11
Copy link
Copy Markdown

Please refer to the README.md file where each step is briefly described. All functions are commented, in the main method, you'll find additional comments for each step.

}


def create_box_columns() -> dict:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

dict[str, str]

return float(sub("^\$", "", x))
if isinstance(x, float):
return x
except:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Catch a more specific exception.

return ""


def update_ean13(x: str) -> str:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be nice to validate the check digit.

return ""


def update_ean13(x: str) -> str:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens if x == -1 ?

str: the country in alpha3 format or "" if it encounters an issue
"""
try:
return country_name_to_country_alpha3(x)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like that you used a 3rd party library

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