50 Python Logic-Building Questions with Checkboxes
Basic Questions (1-20)
[ ] 1. Print the first 10 natural numbers
[ ] 2. Print the multiplication table of a given number
[ ] 3. Check if a number is even or odd
[ ] 4. Find the sum of digits of a number
[ ] 5. Count the number of vowels in a string
[ ] 6. Check if a string is a palindrome
[ ] 7. Find the factorial of a number
[ ] 8. Reverse a number (e.g., 123 321)
[ ] 9. Print Fibonacci series up to N terms
[ ] 10. Check if a number is prime
[ ] 11. Find the largest of 3 numbers
[ ] 12. Swap two variables without using a third variable
[ ] 13. Count the number of words in a string
[ ] 14. Print all numbers between 1 and 100 divisible by 3 and 5
[ ] 15. Find the GCD (Greatest Common Divisor) of two numbers
[ ] 16. Find the LCM (Least Common Multiple) of two numbers
[ ] 17. Convert Celsius to Fahrenheit
[ ] 18. Check if a year is a leap year
[ ] 19. Calculate simple interest
[ ] 20. Sum of all even numbers between 1 and N
Intermediate to Moderate Questions (21-50)
[ ] 1. Print a number triangle pattern
[ ] 2. Print a pyramid of stars
[ ] 3. Remove duplicates from a list
[ ] 4. Find the second largest number in a list
[ ] 5. Check if a list is sorted
[ ] 6. Merge and sort two lists
[ ] 7. Find the common elements between two lists
[ ] 8. Count frequency of each element in a list
50 Python Logic-Building Questions with Checkboxes
[ ] 9. Sort a list without using the built-in sort() function
[ ] 10. Create a calculator using if-else (add, subtract, multiply, divide)
[ ] 11. Count how many times each character occurs in a string
[ ] 12. Replace all vowels in a string with '*'
[ ] 13. Remove all special characters from a string
[ ] 14. Find the maximum occurring character in a string
[ ] 15. Find the sum of all elements in a 2D matrix
[ ] 16. Transpose a 2D matrix
[ ] 17. Check if a number is an Armstrong number
[ ] 18. Check if a number is a perfect number
[ ] 19. Print all prime numbers in a range
[ ] 20. Rotate a list to the left by K positions
[ ] 21. Implement a simple number guessing game
[ ] 22. Convert a decimal number to binary
[ ] 23. Find the missing number in a list of 1 to N
[ ] 24. Create a function that returns True if the string contains only digits
[ ] 25. Reverse words in a sentence (e.g., 'hello world' 'world hello')
[ ] 26. Find all pairs in a list whose sum is equal to a given number
[ ] 27. Remove all duplicate characters from a string
[ ] 28. Find the longest word in a sentence
[ ] 29. Check if two strings are anagrams
[ ] 30. Write a function that returns the nth Fibonacci number using recursion