- Understand the problem statement
- Pause the video and try to solve the problem for minimum 10 - 15 minutes
- Resume the video and compare the solution
- Try again if you did not get result correct
Source: Youtube Playlist Link
All Questions: PDF
| No. | Problem | Answer |
|---|---|---|
| 1 | Write a program that prints "Hello World" on the console | source code |
| 2 | Write a function that takes two numbers as input and prints their sum | source code |
| 3 | Write a function that calculates and prints the area of a rectangle given its length and width | source code |
| No. | Problem | Answer |
|---|---|---|
| 4 | Write a function that tells if a given number is even or odd | source code |
| 5 | Write a function that finds and prints the smallest number among three given numbers | source code |
| No. | Problem | Answer |
|---|---|---|
| 6 | Write a function that returns the reverse of a string | source code |
| No. | Problem | Answer |
|---|---|---|
| 7 | Write a function that returns the reverse of a string | source code |
| No. | Problem | Answer |
|---|---|---|
| 8 | Write a function that tells if provided year is a leap year or not | source code |
| No. | Problem | Answer |
|---|---|---|
| 9 | Write a function that calculates and prints the sum of digits of a given number | source code |
| No. | Problem | Answer |
|---|---|---|
| 10 | Write a function that generates and prints a multiplication table for a given number up to a specific range | source code |
| No. | Problem | Answer |
|---|---|---|
| 11 | Write a function that finds and prints the maximum element in an array of numbers | source code |
| No. | Problem | Answer |
|---|---|---|
| 12 | Write a function that checks if a string is palindrome or not | source code |
| No. | Problem | Answer |
|---|---|---|
| 13 | Write a function that returns the result of raising a given number to a specified power | source code |
| No. | Problem | Answer |
|---|---|---|
| 14 | Write a function that counts and prints the number of vowels and consonants in a given string | source code |
| No. | Problem | Answer |
|---|---|---|
| 15 | Write a function that finds all the factors of a given number | source code |
| No. | Problem | Answer |
|---|---|---|
| 16 | Write a function that calculates and returns the average of a set of numbers | source code |
| No. | Problem | Answer |
|---|---|---|
| 17 | Write a function that calculates and prints the simple interest on a loan amount | source code |
| No. | Problem | Answer |
|---|---|---|
| 18 | Write a function that tells if the given number is prime or not. [Optimized Version] | source code |
| No. | Problem | Answer |
|---|---|---|
| 19 | Write a function that counts and returns the number of words in a sentence | source code |
| No. | Problem | Answer |
|---|---|---|
| 20 | Write a function that converts a temperature in Celsius to Fahrenheit | source code |
| No. | Problem | Answer |
|---|---|---|
| 21 | Write a program that swap two numbers | source code |
| No. | Problem | Answer |
|---|---|---|
| 22 | Write a program that checks if a number is Armstrong or not | source code |
| No. | Problem | Answer |
|---|---|---|
| 23 | Write a program that prints numbers from 1 to N replacing: - multiple of 3 with "Fizz" - multiple of 5 with "Buzz" - multiple of both 3 & 5 with "FizzBuzz" |
source code |
| No. | Problem | Answer |
|---|---|---|
| 24 | Write a program that prints a number pyramid | source code |
| No. | Problem | Answer |
|---|---|---|
| 25 | Write a program that counts the occurrences of each character in a given string | source code |
| No. | Problem | Answer |
|---|---|---|
| 26 | Write a program that checks if a given string is in alphabetical order | source code |
| No. | Problem | Answer |
|---|---|---|
| 27 | Write a program that checks if two given strings are anagrams of each other | source code |
| No. | Problem | Answer |
|---|---|---|
| 28 | Write a program that transposes a given matrix (swaps rows and columns) | source code |
| No. | Problem | Answer |
|---|---|---|
| 29 | Write a program that checks if a given number is a perfect number | source code |
| No. | Problem | Answer |
|---|---|---|
| 30 | Write a program that checks if the provided password is strong or not | source code |
| No. | Problem | Answer |
|---|---|---|
| 31 | Write a program that multiplies two matrices and returns the result | source code |
| No. | Problem | Answer |
|---|---|---|
| 32 | Write a program that calculates the tip amounts based on the bill total and percentages entered by the user (Tip Calculator) | source code |
| No. | Problem | Answer |
|---|---|---|
| 33 | Write a program to find and count all palindromic substrings within a given string | source code |
| No. | Problem | Answer |
|---|---|---|
| 34 | Write a program that checks if a given string of a parentheses is balanced and well formed | source code |
| No. | Problem | Answer |
|---|---|---|
| 35 | Write a program that finds all occurrences of a given word in a big string | source code |
| No. | Problem | Answer |
|---|---|---|
| 36 | Write a program that generates a random number | source code |
| 37 | Write a program that takes input from the user | source code |
| No. | Problem | Answer |
|---|---|---|
| 38 | Write a program that simulates rolling a dice | source code |
| No. | Problem | Answer |
|---|---|---|
| 39 | Write a program that creates a basic alarm clock | source code |
| No. | Problem | Answer |
|---|---|---|
| 40 | Write a program that builds a number guess game | source code |
| No. | Problem | Answer |
|---|---|---|
| 41 | Write a program that builds a very basic calculator | source code |
| No. | Problem | Answer |
|---|---|---|
| 42 | Write a program that plays Rock Paper Scissors with the user | source code |
| No. | Problem | Answer |
|---|---|---|
| 43 | Write to-do list program that allows user to add, remove, and list tasks | source code |