← 返回首页
Added another alternative solution of max-of-two-digits · Pull Request #12 · ProgrammingHero1/100-plus-python-coding-problems-with-solutions · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

Open
ghost wants to merge 1 commit into
masterfrom
unknown repository
Open

Added another alternative solution of max-of-two-digits#12
ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

Copy link
Copy Markdown

ghost commented Jul 11, 2021

No description provided.

This comment was marked as resolved.

This comment was marked as duplicate.

Copy link
Copy Markdown

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

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, 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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.