Python Exercise with Practice Questions and Solutions
This collection of Python coding practice problems is designed to help you improve your overall programming skills in Python.
- The links below lead to different topic pages, each containing coding problems, and this page also includes links to quizzes. You need to log in first to write your code. Your code will be tested against the expected output, and you’ll earn points on the portal if the output matches and the submission is successful.
- In case your submission gives an error, you’ll receive a clear message indicating the type of error (compiler error or output mismatch).
- To learn by solved examples, refer to Python Programs page.
Basic Problems
For more problems and coding practices visit Python Fundamentals Coding Practice Problem.
Conditional Statement and Loops Problems
For more problems and coding practices visit Python Conditional Statement and Loops Coding Problem.
Functions Problems
- Function With Return Value
- Function With No Arguments
- Function With Arguments
- First Digit of a Number
- Print GFG n times
For more problems and coding practices visit Python Functions Coding Practice Problems
List Problems
For more problems and coding practices visit Python List Exercise
String Problems
- Repeat the Strings
- String Function
- Convert String to LowerCase
- Reverse String
- Check Palindrome
- Find Pattern
- Decimal number to binary number
For more problems and coding practices visit Python String Exercise
Dictionary Problems
- Intro to Dictionary
- Dictionary
- Longest Subarray with Sum K
- Sort According to an Array
- First Repeating Element
For more problems and coding practices visit Python Dictionary Exercise
Set Problems
For more problems and coding practices visit Python Set Exercise
OOP Problems
For more problems and coding practices visit Python OOP Coding Practice Problems
Heap Problems
For more problems and coding practices visit Python Heap Coding Practice Problems
Deque Problems
- K Sized Subarray Maximum
- First negative in every window of size k
- Rotten Oranges
- K Sized Subarray Maximum
- First negative in every window of size k
For more problems and coding practices visit Python Deque Coding Practice Problems
Python Quizzes
- Variable
- Data Types
- Output
- Operator
- Control Flow
- For Loop
- While Loop
- Python List
- String
- Tuples
- Dictionary
- Set
- Functions
- Namespace and Scope
- OOPs
- Classes
- Exception Handling
- File Handling
- Heap
- Dequeue
- Miscellaneous