Awesome
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
-
2 - Number Related - 6-10
-
3 - Loop Related - 11-16
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 - Reverse String (stack)
- 8.3 - Reverse String (recursive)
- 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 - Cows and bulls(4digits)
- 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