Solutions for Python challenges on HackerRank
A collection of Python script files solving a variety of HackerRank problems—from beginner exercises like "Say Hello World" to medium-level algorithmic tasks like "Find the Runner-Up Score" and data structure challenges.
- ✅ Clean, modular Python solutions
- 📂 Organized by challenge type (e.g. Strings, Sets, Loops, Conditionals, Comprehensions, Math)
- 🧠 Covers a range of HackerRank domains and difficulty levels
- 💡 Great for learning Python syntax, algorithms, and standard library methods
- Language: Python 3
- No external dependencies—pure, standard Python
-
Clone your own fork (or this repo):
git clone https://github.com/Abishek-Web-Co/Hackerank_Python.git cd Hackerank_Python
-
View or run a solution file:
python problem_name.py
Replace
problem_name.py
with the relevant script (e.g.loops.py
,nested_lists.py
). -
Modify input values or test cases directly in the script, or adjust them to use
input()
as needed.
Hackerank_Python/
│
├── introduction/
│ ├── hello_world.py
│ ├── if_else.py
│ └── arithmetic_operators.py
│
├── loops/
│ └── squares_loop.py
│
├── data_types/
│ ├── list_comprehension.py
│ ├── nested_lists.py
│ └── tuples.py
│
├── strings/
│ └── swap_case.py
│
└── sets/
└── symmetric_difference.py
(Adjust paths to match your actual structure.)
Pull requests are welcome! Feel free to:
- Add alternative or optimized solutions
- Include additional test cases or problem categories
- Improve README, formatting, or add clear comments
- GitHub: Abishek-Web-Co/Hackerank_Python
- HackerRank:
abishekinterspa1
There are no licensing restrictions—this is an open repo, share and learn as you wish 👍