Top Python Coding Questions for Freshers
1. Palindrome Check - Check if a given string or number is a palindrome.
2. Fibonacci Series - Generate the first n numbers in the Fibonacci series.
3. Prime Number Check - Determine whether a given number is prime.
4. Factorial of a Number - Find the factorial of a given number using loops/recursion.
5. Armstrong Number - Check if a number is an Armstrong number.
6. Reverse a String or List - Reverse the input string or list.
7. Find Maximum and Minimum in a List - Find the largest and smallest elements.
8. Sum of Elements in List - Calculate the sum of all elements in a list.
9. Second Largest Number - Find the second highest element in an array.
10. Remove Duplicates from List - Remove duplicate entries from a list.
11. Count Vowels in a String - Count the number of vowels in a string.
12. Check for Anagram Strings - Determine if two strings are anagrams.
13. Print Patterns - Create star, number, or pyramid patterns using loops.
14. Find the Missing Number in a List - Identify the missing number from a sequence.
15. Check Leap Year - Determine if a year is a leap year.
16. Bubble Sort or Selection Sort - Implement basic sorting algorithms.
17. Binary Search Implementation - Implement binary search on a sorted list.
18. Linear Search - Find an element in a list using linear search.
19. Sort Words Alphabetically in a Sentence - Sort all words in a sentence.
20. Count Frequency of Characters in a String - Count how often each character appears.
21. FizzBuzz - Print numbers 1 to 100 with Fizz/Buzz/FizzBuzz rules.
22. Swap Two Variables Without Temp Variable - Swap values using arithmetic or tuple.
23. Sum of Digits in a Number - Compute the sum of all digits in a number.
24. Find GCD and LCM of Two Numbers - Calculate the greatest common divisor and least common
multiple.
25. Check if List is Sorted - Verify whether the list is sorted in ascending order.