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

Adds @wenzhaojia2000's solution to exercises #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wenzhaojia2000
Copy link

Answers UCL-COMP0233-2022-2023/RSE-Classwork#13

My solution looks like one of the more concise answers (after having a look at the others). However, it does not return multiple earthquakes if their magnitudes are the same.

Output:
The strongest earthquake was at (-2.15, 52.52) with magnitude 4.8

I learned that list.sort() sorts the list in place, while sorted(list) returns the sorted list as a new list.

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.

1 participant