Python Coding on if else statement

  1. Python Program to print maximum among two numbers.
  2. Python Program to print maximum among three numbers.
  3. Python Program to check a given number is divisible by 3 or not.
  4. Python Program to check a given number is divisible by 5 or not.
  5. Python Program to check a given number is divisible by 11 or not.
  6. Python Program to check a given number is even or odd.
  7. Python Program to check whether a year is leap year or not.
  8. Python Program to check a given input is digit or not.
  9. Python Program to check a given input is alphabet or not.
  10. Python Program to check a given input is digit or alphabets.
  11. Python Program to check a given number is positive or negative number.
  12. Python Program to convert temperature from Celsius to Fahrenheit and Fahrenheit to Celsius.
  13. Python Program to check whether a character is vowel or consonant.
  14. Python Program to check whether a character is vowel or consonant or special character.
  15. Python Program to check a given character is uppercase or lowercase.
  16. Python Program to print week day for a given input week.
  17. Python Program to print number of days for a given input month.
  18. Python Program to check a triangle is equilateral, isosceles or scalene triangle.
  19. Python Program to check a person is valid for vote or not?
  20. Python Program to check Division on the basis of marks obtained by students. Percentage >= 60% : Division 1, Percentage >= 45% : Division 2, Percentage >= 30% : Division 3, Percentage < 30% : Fail
  21. Python Program to Calculate percentage and grade of students on the basis of marks obtained in 5 subjects Maths, Physics, Chemistry, English and Hindi. Marks of subject is taken as an input: Percentage >= 90% : Grade A, Percentage >= 80% : Grade B, Percentage >= 70% : Grade C, Percentage >= 60% : Grade D, Percentage >= 40% : Grade E, Percentage < 40% : Grade F

Python Coding on loop (While & For Loop)

  1. Python Program to print all natural numbers from 1 to n using while loop.
  2. Python Program to print all even numbers between 1 to 100 using while loop.
  3. Python Program to print all odd number between 1 to 100 using while loop.
  4. Python Program to print sum of all even numbers between 1 to n using while loop.
  5. Python Program to print sum of all odd numbers between 1 to n using while loop.
  6. Python Program to print multiplication of any number using while loop.
  7. Python Program to count the digits of a given number using while loop.
  8. Python Program to print the sum of digits of a given number using while loop.
  9. Python Program to print all natural numbers in reverse order using while loop.
  10. Python Program to check whether a given number is Prime or not using while loop.
  11. Python Program to print all Prime numbers between 1 to n using while loop.
  12. Python Program to find sum of all prime numbers between 1 to n using while loop.
  13. Python Program to check a given number is Armstrong or not using while loop.
  14. Python Program to print all Armstrong numbers between 1 to n using while loop.
  15. Python Program to check a given number is Perfect or not using while loop.
  16. Python Program to check all Perfect numbers between 1 to n using while loop.
  17. Python Program to check a given number is Strong number or not using while loop.
  18. Python Program to print all Strong numbers between 1 to n using while loop.
  19. Program in Java to swap first and last digit of number using while loop.
  20. Python Program to swap values using third variable using while loop.
  21. Python Program to swap values without using third variable using while loop.
  22. Python Program to calculate power of a number without using pow method using while loop.
  23. Python Program to find power of a number without using pow method using while loop.
  24. Python Program to calculate power of a number using pow method using while loop.
  25. Python Program to check number is palindrome or not using while loop.
  26. Python Program to print Fibonacci series of a given number using while loop.
  27. Python Program to print Fibonacci series of a given number using recursion using while loop.
  28. Python Program to print the frequency of digits in given number using while loop.
  29. Program in Java to print ASCII character with values using while loop.
  30. Python Program to print all alphabets from a to z using while loop.
  31. Python Program to print all uppercase alphabets using while loop.
  32. Python Program to print all lowercase alphabets using while loop.
  33. Python Program to print all factors of a number using while loop.
  34. Python Program to print HCF (GCD) of two numbers using while loop.
  35. Python Program to print LCM of two numbers using while loop.
  36. Python Program to find all prime factors of a number using while loop.

Python Coding Questions on String

  1. Python Program to print the length of given string.
  2. Python Program to concatenate two strings.
  3. Python Program to compare two strings.
  4. Python Program to perform copy of one string to another string.
  5. Python Program to convert lowercase string to uppercase.
  6. Python Program to convert uppercase string to lowercase.
  7. Python Program to reverse order of words in a given string.
  8. Python Program to print the frequency of alphabets, digits or special character in a string.
  9. Python Program to count total number of vowels and consonants in a string.
  10. Python Program to count total number of words in a string.
  11. Python Program to find reverse of a string.
  12. Python Program to check whether a string is palindrome or not.
  13. Python Program to print the first character in a given string.
  14. Python Program to print the last character in a given string.
  15. Python Program to print the frequency of each character in a string.
  16. Python Program to find highest frequency character in a string.
  17. Python Program to find lowest frequency character in a string.
  18. Python Program to remove first character from string.
  19. Python Program to remove last character from string.
  20. Python Program to remove all vowels from string.
  21. Python Program to remove all consonants from a given string.
  22. Python Program to replace all space with * in a given string.
  23. Python Program to remove line break from the string.

Python Coding Questions on Array

  1. Python Program to take input and print all the elements of array.
  2. Python Program to count total number of elements in array.
  3. Python Program to count total number of even and odd elements in an array.
  4. Python Program to count total number of negative elements in an array.
  5. Python Program to print all negative elements in an array.
  6. Python Program to find reverse of an array.
  7. Python Program to find reverse of an array without using temp variable.
  8. Python Program to find sum of all array elements.
  9. Python Program to print minimum and maximum element in an array.
  10. Python Program to print second largest element in an array.
  11. Python Program to copy one array to another array.
  12. Python Program to insert an element in an array at end.
  13. Python Program to insert an element in an array at first.
  14. Python Program to insert an element in an array at given location.
  15. Python Program to delete an element in an array at end.
  16. Python Program to delete an element in an array at first.
  17. Python Program to delete an element from an array at given index.
  18. Python Program to count and print frequency of each element in an array.
  19. Python Program to print all unique elements in the array.
  20. Python Program to count total number of duplicate elements in an array.
  21. Python Program to delete all duplicate elements from an array.
  22. Python Program to merge two array to third array.
  23. Python Program to sperate even and odd number of array in two separate array.
  24. Python Program to search an element in an array.
  25. Python Program to sort array elements in ascending order.
  26. Python Program to sort array elements in descending order.
  27. Python Program to perform one left rotation on array.
  28. Python Program to perform one right rotation on an array.
  29. Python Program to perform two left rotation on array.
  30. Python Program to perform two right rotation on an array.
  31. Python Program to check two array are equal in size or not.
  32. Python Program to find largest and smallest number in array.
  33. Python Program to find second highest number in an array.
  34. Python Program to find top two maximum number in array.
  35. Python Program to merge two arrays.

Python Coding Questions on List

  1. Python Program to take input and print all the elements of list.
  2. Python Program to count total number of elements in list.
  3. Python Program to count total number of even and odd elements in a list.
  4. Python Program to count total number of negative elements in a list.
  5. Python Program to print all negative elements in a list.
  6. Python Program to find reverse of an list.
  7. Python Program to find reverse of an list without using temp variable.
  8. Python Program to find sum of all list elements.
  9. Python Program to print minimum and maximum element in a list.
  10. Python Program to print second largest element in a list.
  11. Python Program to copy one list to another list.
  12. Python Program to insert an element in an list at end.
  13. Python Program to insert an element in an list at first.
  14. Python Program to insert an element in an list at given location.
  15. Python Program to delete an element in an list at end.
  16. Python Program to delete an element in an list at first.
  17. Python Program to delete an element from an list at given index.
  18. Python Program to count and print frequency of each element in an list.
  19. Python Program to print all unique elements in the list.
  20. Python Program to count total number of duplicate elements in an list.
  21. Python Program to delete all duplicate elements from an list.
  22. Python Program to merge two array to third list.
  23. Python Program to sperate even and odd number of list in two separate list.
  24. Python Program to search an element in an list.
  25. Python Program to sort array elements in ascending order.
  26. Python Program to sort list elements in descending order.
  27. Python Program to perform one left rotation on list.
  28. Python Program to perform one right rotation on an list.
  29. Python Program to perform two left rotation on list.
  30. Python Program to perform two right rotation on an list.
  31. Python Program to check two list are equal in size or not.
  32. Python Program to find largest and smallest number in list.
  33. Python Program to find second highest number in an list.
  34. Python Program to find top two maximum number in list.
  35. Python Program to merge two list.

Python Coding Questions on Matrix

  1. Python Program to add two matrices.
  2. Python Program to subtract two matrices.
  3. Python Program to multiply two matrices.
  4. Python Program to find transpose of a matrix.
  5. Python Program to find upper triangular matrix.
  6. Python Program to find lower triangular matrix.
  7. Python Program to perform Scalar matrix multiplication.
  8. Python Program to check whether two matrices are equal or not.
  9. Python Program to find sum of each row and column of a matrix.
  10. Python Program to find sum of main diagonal elements of a matrix.
  11. Python Program to find sum of minor diagonal elements of a matrix.
  12. Python Program to interchange diagonals of a matrix.
  13. Python Program to find sum of upper triangular matrix.
  14. Python Program to find sum of lower triangular matrix.
  15. Python Program to find determinant of a matrix.
  16. Python Program to check Identity matrix.
  17. Python Program to check Sparse matrix.
  18. Python Program to check Symmetric matrix.

Python Coding Questions of Singly Linked List

  1. Python Program to Create and Traverse a Singly linked list.
  2. Python Program to Insert a node at the beginning of the Singly linked list.
  3. Python Program to Insert a node at the End of Singly Linked List.
  4. Python Program to Insert a node at the Given location of Singly Linked List.
  5. Python Program to Search an element in the Singly linked list.
  6. Python Program to Delete a node at the beginning of the Singly linked list.
  7. Python Program to Delete a node at the End of the Singly linked list.
  8. Python Program to Delete a node at the Given Location of the Singly linked list.
  9. Python Program to Reverses the Singly linked list.

Python Coding Questions of Doubly Linked List

  1. Python Program to Create and Traverse a Doubly Linked List.
  2. Python Program to Insert a node at the beginning of the Doubly Linked List.
  3. Python Program to Insert a node at the End of Doubly Linked List.
  4. Python Program to Insert a node at the Given location of Doubly Linked List.
  5. Python Program to Search an element in the Doubly Linked List.
  6. Python Program to Delete a node at the beginning of the Doubly Linked List.
  7. Python Program to Delete a node at the End of the Doubly Linked List.
  8. Python Program to Delete a node at the Given Location of the Doubly Linked List.
  9. Python Program to Reverses the Doubly Linked List.

Python Coding Questions of Circular Linked List

  1. Python Program to Create and Traverse a Circular Linked List.
  2. Python Program to Insert a node at the beginning of the Circular Linked List.
  3. Python Program to Insert a node at the End of Circular Linked List.
  4. Python Program to Insert a node at the Given location of Circular Linked List.
  5. Python Program to Search an element in the Circular Linked List.
  6. Python Program to Delete a node at the beginning of the Circular Linked List.
  7. Python Program to Delete a node at the End of the Circular Linked List.
  8. Python Program to Delete a node at the Given Location of the Circular Linked List.
  9. Python Program to Reverses the Circular Linked List.

Python Coding questions on Searching

  1. Python Program to perform linear search.
  2. Python Program to perform Binary Search.

Python Coding questions on Sorting

  1. Python Program to Implement Bubble Sort.
  2. Python Program to Implement Selection Sort.
  3. Python Program to Implement Insertion Sort.
  4. Python Program to Implement Quicksort.
  5. Python Program to Implement Counting Sort.
  6. Python Program to Implement Merge Sort.
  7. Python Program to Implement Radix Sort.
  8. Python Program to Implement Bucket Sort.
  9. Python Program to Implement Heap Sort.
  10. Python Program to Implement Shell Sort.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Categorized in:

Python Coding,