Skip to content
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

Update 009_Find_the_Runner_Up_Score.md #3

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

Conversation

Technight27
Copy link

Ihave added one more simple solution

Copy link
Owner

@hevalhazalkurt hevalhazalkurt left a comment

Choose a reason for hiding this comment

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

Looks good, only one little request before merge your solution.

n = int(input())
arr = map(int, input().split())
l=[]
l=list(arr)
Copy link
Owner

Choose a reason for hiding this comment

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

Thank you for your contribution! Your solution is correct, but we can make a few improvements. You define l twice as list you don't need that. In fact, doing as in the example below where you define arr can further simplify your code.

arr = list(map(int, input().split()))

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