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
- 7.1 - Β Check Prime
- 7.2 - Β Prime Numbers
- 7.3 - Β Prime factors
- 7.4 - Β Smallest prime factor
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
- 13.1 - Β Simple Clock
- 13.2 - Β Birthday-remaining.md
- 13.3 - Β Calculate age
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