Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added another alternative solution of max-of-two-digits #12

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 11, 2021

No description provided.

samail-islam

This comment was marked as resolved.

Copy link

@samail-islam samail-islam left a 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 great! I would suggest a little change. It would be better that user would enter two numbers together, like 243,587 and the programme will perform the task. You can use a split() to make the two numbers separate and put them into separate variables.
It would make the programme more advanced!

Note

The split() method is a built in function of python which can split a string where there is the specified character.
If you give example-string.split(",") it will return a list splitting the string where there is a comma.

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