- Notifications
You must be signed in to change notification settings - Fork378
Added another alternative solution of max-of-two-digits#12
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
samail-islam left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The alternative solution you have provided is nice! I would suggest a little change. It would be better that user would enter two numbers together, like243,587
and the programme will perform the task. You can use asplit()
to make the two numbers separate and put them into separate variables.
It would make the programme more advanced!
Note
Thesplit()
method is a built in function of python which can split a string where there is the specified character.
If you giveexample-string.split(",")
it will return a list splitting the string where there is a comma.
No description provided.