Skip to content

Sampath7890/Python_ProblemSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Python Problem Solver

This repository contains small Python solutions for programming problems.

Current Problem

Runner-Up Score

runnerUp_score.py reads a list of scores and prints the runner-up score, which is the second-highest unique score in the list.

How It Works

  1. Reads the number of scores.
  2. Reads the score values.
  3. Removes duplicate scores.
  4. Sorts the unique scores.
  5. Prints the second-highest score.

Requirements

  • Python 3.x

No external packages are required.

Usage

Run the script from the terminal:

python runnerUp_score.py

Example input:

5
2 3 6 6 5

Example output:

5

File Structure

Python_ProblemSolver/
|-- README.md
`-- runnerUp_score.py

Notes

The script assumes there are at least two unique scores in the input.

About

A collection of Python problem-solving exercises and coding challenges to strengthen logic, algorithms, and programming skills.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages