100-plus-python-coding-problems-with-solutions
A list of python problems for beginners and intermediate developers
Last updated Jul 3, 2026
956
Stars
386
Forks
19
Issues
+1
Stars/day
Attention Score
45
Topics
Language breakdown
No language data available.
βΈ Files
click to expand
README
100 Plus Python Coding Problems With Solutions
Welcome to the Python problem-solving world.
Here, we will take a real-world coding related problem. We will think about the process of solving the problem and then we will solve it. After the solution, we will explain the answer.
Table of Contents:
1 - Easy ones
- 1.1 - Convert input
- 1.2 - Math power
- 1.3 - Random Number
- 1.4 - Floor Division
- 1.5 - Temporary variable
2 - Number Related
- 2.1 - Max of two
- 2.2 - Max of three
- 2.3 - Average of numbers
- 2.4 - Divisible by 3 and 5
- 2.5 - Sum of digits
3 - Loop Related
- 3.1 - Sum of elements
- ### 2 - Number Related - 6-10
- 2.1 - Max of two
- 2.2 - Max of three
- 2.3 - Average of numbers
- 2.4 - Divisible by 3 and 5
- 2.5 - Sum of digits
- ### 3 - Loop Related - 11-16
- 3.1 - Sum of elements
- 3.2 - Largest element of a list
- 3.3 - Sum of squares
- 3.4 - Second Largest
- 3.5 - Second Smallest
- 3.6 - Remove duplicate Chars
4 - Conversions
- 4.1 - Miles to Kilometers
- 4.2 - Celsius to Fahrenheitt
- 4.3 - Decimal to binary
- ### 4 - Conversions - 17-21
- 4.1 - Miles to Kilometers
- 4.2 - Celsius to Fahrenheitt
- 4.3 - Decimal to binary
- 4.4") - Decimal to binary (recursive)
- 4.5 - Binary to decimal - Premium Access
5 - Solution Strategy
6 - Computations
- 6.1 - Simple Interest
- 6.2 - Complex Interest
- 6.3") - Calculate Grades
- 6.4") - Gravitational Force
- 6.5") - Triangle Area
7 - Prime number
8 - Reverse
- 8.1 - Reverse String
- 8.2.md "Reverse String (stack)") - Reverse String (stack).md)
- 8.3.md "Reverse String (recursive)") - Reverse String (recursive).md)
- 8.4 - Reverse Number
- 8.5 - Reverse word
9 - Medium
- 9.1 - Check palindrome
- 9.2 - Dictionary of cubes
- 9.3 - Armstrong number
- 9.4 - Greatest common divisor
- 9.5 - Least Common Multiple
10 - Programming Contest
11 - Simple Game
- 11.1 - Guess game
- 11.2 - Rock paper scissor
- 11.3 - Cows and bulls
- 11.4.md "Cows and bulls(4digits)") - Cows and bulls(4digits).md)
- 11.5 - Word completion
- 11.6 - Word hangman
12 - Harder
- 12.1 - Simple Calculator
- 12.2 - Password generator
- 12.3 - Password with requirements
- 12.4 - Permutations
- 12.5 - Generate Sentences
13 - User Submitted
Only half of the task is done. More problems are coming. If you want to add more problems, feel free to send a pull request.
Many solutions
Here we are focusing on the thinking and strategies to solve a problem. However, every problem could be solved in multiple ways. And other solutions could be better and faster.Always keep an open mind to learn multiple solutions to solve a problem.
Letβs Start
Letβs start your journey. Letβs solve every problem you face.
Letβs do it.
tags: programming-hero python python3 problem-solving programming coding-challenge interview learn-python python-tutorial programming-exercises programming-challenges programming-fundamentals programming-contest python-coding-challenges python-problem-solving
π More in this category
