{"id":26367495,"url":"https://github.com/rahulrmcoder/python-oops-mini-project2","last_synced_at":"2025-06-28T14:37:05.754Z","repository":{"id":245151070,"uuid":"817407087","full_name":"RahulRmCoder/Python-OOPS-Mini-Project2","owner":"RahulRmCoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-19T16:54:21.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T08:41:28.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RahulRmCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-19T16:31:50.000Z","updated_at":"2024-06-19T16:54:24.000Z","dependencies_parsed_at":"2024-06-20T04:57:36.986Z","dependency_job_id":"93283e8d-ffa1-43c9-9044-4874e078462a","html_url":"https://github.com/RahulRmCoder/Python-OOPS-Mini-Project2","commit_stats":null,"previous_names":["rahulrmcoder/python-oops-mini-project2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RahulRmCoder/Python-OOPS-Mini-Project2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FPython-OOPS-Mini-Project2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FPython-OOPS-Mini-Project2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FPython-OOPS-Mini-Project2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FPython-OOPS-Mini-Project2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RahulRmCoder","download_url":"https://codeload.github.com/RahulRmCoder/Python-OOPS-Mini-Project2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2FPython-OOPS-Mini-Project2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262446848,"owners_count":23312633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-16T21:17:24.615Z","updated_at":"2025-06-28T14:37:05.726Z","avatar_url":"https://github.com/RahulRmCoder.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-OOPS-Mini-Project2\n# Concept: Max Score Calculation in Cricket Series\n\n## Question: Consider an ongoing test cricket series. Following are the names of the players and their scores in the test1 and 2.\n## Test Match 1 :\n## Dhoni : 56 , Balaji : 94\n## Test Match 2 :\n## Balaji : 80 , Dravid : 105\n## Calculate the highest number of runs scored by an individual cricketer in both of the matches.\n## Create a python function Max_Score (M) that reads a dictionary M that recognizes the player with the highest total score. This function will return ( Top player , Total Score ) . You can consider the Top player as String who is the highest scorer and Top score as Integer .\n## Input : Max_Score({‘test1’:{‘Dhoni’:56, ‘Balaji : 85}, ‘test2’:{‘Dhoni’ 87, ‘Balaji’’:200}})\n## Output : (‘Balaji ‘ , 200)\n\n## Overview\n\nThis project calculates the highest number of runs scored by an individual cricketer in a test cricket series. It reads a dictionary containing player scores from multiple test matches and identifies the top scorer.\n\n## Function\n\n### `Max_Score(M)`\n- **Input:** A dictionary `M` with test match names as keys and another dictionary as values. The inner dictionary contains player names as keys and their scores as values.\n- **Output:** A tuple containing the name of the top player and their total score.\n- **Description:** The function reads the dictionary, sums the scores for each player across all test matches, and returns the player with the highest total score.\n\n## Usage\n\n1. **Prepare the Data:** Create a dictionary with test match names and player scores.\n2. **Call the Function:** Pass the dictionary to the `Max_Score(M)` function.\n3. **Get the Result:** The function returns the top player and their total score.\n\n## Requirements\n**Python** \u003cbr\u003e\n**Jupyter Notebook**\n\n## Example\n\n```python\ntest_scores = {\n    'test1': {'Dhoni': 56, 'Balaji': 94},\n    'test2': {'Balaji': 80, 'Dravid': 105}\n}\ntop_player, top_score = Max_Score(test_scores)\nprint(f\"Top Player: {top_player}, Top Score: {top_score}\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrmcoder%2Fpython-oops-mini-project2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulrmcoder%2Fpython-oops-mini-project2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrmcoder%2Fpython-oops-mini-project2/lists"}