Table of Contents
- Python Basic Coding on if else statement
- Python Basic Coding on While loop
- Python Program on for loop Statement
- Python Program on Switch Statement
- Python Program on Pointer concepts
- Python Coding questions on String Concepts
- Python Basic Programs on Array Concepts
- Python Coding problems on Matrix Concept
- Python Coding Questions of Singly Linked List
- Python Coding Questions of Doubly Linked List
- Python Coding Questions of Circular Linked List
- Python Coding questions on Searching
- Python Coding questions on Sorting
Python Basic Coding on if else statement
- Python Program to print maximum among two numbers.
- Python Program to print maximum among three numbers.
- Python Program to check a given number is divisible by 3 or not.
- Python Program to check a given number is divisible by 5 or not.
- Python Program to check a given number is divisible by 11 or not.
- Python Program to check a given number is even or odd.
- Python Program to check whether a year is leap year or not.
- Python Program to check a given input is digit or not.
- Python Program to check a given input is alphabet or not.
- Python Program to check a given input is digit or alphabets.
- Python Program to check a given number is positive or negative number.
- Python Program to convert temperature from Celsius to Fahrenheit and Fahrenheit to Celsius.
- Python Program to check whether a character is vowel or consonant.
- Python Program to check whether a character is vowel or consonant or special character.
- Python Program to check a given character is uppercase or lowercase.
- Python Program to print week day for a given input week.
- Python Program to print number of days for a given input month.
- Python Program to check a triangle is equilateral, isosceles or scalene triangle.
- Python Program to check a person is valid for vote or not?
- 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
- 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 Basic Coding on While loop
- Python Program to print all natural numbers from 1 to n using while loop.
- Python Program to print all even numbers between 1 to 100 using while loop.
- Python Program to print all odd number between 1 to 100 using while loop.
- Python Program to print sum of all even numbers between 1 to n using while loop.
- Python Program to print sum of all odd numbers between 1 to n using while loop.
- Python Program to print multiplication of any number using while loop.
- Python Program to count the digits of a given number using while loop.
- Python Program to print the sum of digits of a given number using while loop.
- Python Program to print all natural numbers in reverse order using while loop.
- Python Program to check whether a given number is Prime or not using while loop.
- Python Program to print all Prime numbers between 1 to n using while loop.
- Python Program to find sum of all prime numbers between 1 to n using while loop.
- Python Program to check a given number is Armstrong or not using while loop.
- Python Program to print all Armstrong numbers between 1 to n using while loop.
- Python Program to check a given number is Perfect or not using while loop.
- Python Program to check all Perfect numbers between 1 to n using while loop.
- Python Program to check a given number is Strong number or not using while loop.
- Python Program to print all Strong numbers between 1 to n using while loop.
- Program in Java to swap first and last digit of number using while loop.
- Python Program to swap values using third variable using while loop.
- Python Program to swap values without using third variable using while loop.
- Python Program to calculate power of a number without using pow method using while loop.
- Python Program to find power of a number without using pow method using while loop.
- Python Program to calculate power of a number using pow method using while loop.
- Python Program to check number is palindrome or not using while loop.
- Python Program to print Fibonacci series of a given number using while loop.
- Python Program to print Fibonacci series of a given number using recursion using while loop.
- Python Program to print the frequency of digits in given number using while loop.
- Program in Java to print ASCII character with values using while loop.
- Python Program to print all alphabets from a to z using while loop.
- Python Program to print all uppercase alphabets using while loop.
- Python Program to print all lowercase alphabets using while loop.
- Python Program to print all factors of a number using while loop.
- Python Program to print HCF (GCD) of two numbers using while loop.
- Python Program to print LCM of two numbers using while loop.
- Python Program to find all prime factors of a number using while loop.
Python Program on for loop Statement
- Python Program to print all natural numbers from 1 to n using for loop.
- Python Program to print all even numbers between 1 to 100 using for loop.
- Python Program to print all odd number between 1 to 100 using for loop.
- Python Program to print sum of all even numbers between 1 to n using for loop.
- Python Program to print sum of all odd numbers between 1 to n using for loop.
- Python Program to print multiplication of any number using for loop.
- Python Program to count the digits of a given number using for loop.
- Python Program to print the sum of digits of a given number using for loop.
- Python Program to print all natural numbers in reverse order using for loop.
- Python Program to check whether a given number is Prime or not using for loop.
- Python Program to print all Prime numbers between 1 to n using for loop.
- Python Program to find sum of all prime numbers between 1 to n using for loop.
- Python Program to check a given number is Armstrong or not using for loop.
- Python Program to print all Armstrong numbers between 1 to n using for loop.
- Python Program to check a given number is Perfect or not using for loop.
- Python Program to check all Perfect numbers between 1 to n using for loop.
- Python Program to check a given number is Strong number or not using for loop.
- Python Program to print all Strong numbers between 1 to n using for loop.
- Write a program in Java to swap first and last digit of number using for loop.
- Python Program to swap values using third variable using for loop.
- Python Program to swap values without using third variable using for loop.
- Python Program to calculate power of a number without using pow method using for loop.
- Python Program to find power of a number without using pow method using for loop.
- Python Program to calculate power of a number using pow method using for loop.
- Python Program to check number is palindrome or not using for loop.
- Python Program to print Fibonacci series of a given number using for loop.
- Python Program to print Fibonacci series of a given number using recursion using for loop.
- Python Program to print the frequency of digits in given number using for loop.
- Write a program in Java to print ASCII character with values using for loop.
- Python Program to print all alphabets from a to z using for loop.
- Python Program to print all uppercase alphabets using for loop.
- Python Program to print all lowercase alphabets using for loop.
- Python Program to print all factors of a number using for loop.
- Python Program to print HCF (GCD) of two numbers using for loop.
- Python Program to print LCM of two numbers using for loop.
- Write a Python Program to find all prime factors of a number using for loop.
Python Program on Switch Statement
- Python Program to print day name of given week using switch statement.
- Python Program print total number of days in a given month using switch Statement.
- Python Program to check a given alphabet is vowel or consonant using switch statement.
- Python Program to check a given number is positive, negative or zero using switch statement.
- Python Program to print maximum among two numbers using switch statement.
- Python Program to check a given number is even or odd using switch statement.
- Python Program to create Simple Calculator using switch statement.
- Python Program to check whether a year is a leap year or not using switch statement.
- Python Program to check a given triangle is an equilateral, isosceles or scalene triangle using switch statement.
- Python Program to Convert positive number into negative and negative number into a positive using switch statement.
Python Program on Pointer concepts
- Python Program to find the sum of two numbers using pointers.
- Python Program to swap two numbers using pointers.
- Python Program to find length of string using pointers.
- Python Program to copy one string to another using pointers.
- Python Program to concatenate two strings using pointers.
- Python Program to compare two strings using pointers.
- Python Program to find reverse of a string using pointers.
- Python Program to count the number of vowels and consonants in a string using a pointer
- Python Program to find the factorial of a given number using pointers
- Python Program to sort array using pointers.
- Python Program to copy one array using pointers.
- Python Program to swap two arrays using pointers.
- Python Program to reverse an array using pointers.
- Python Program to search an element in array using pointers.
- Python Program to access two dimensional array using pointers.
- Python Program to add two matrix using pointers.
- Python Program to multiply two matrix using pointers.
- Python Program to compute the sum of all elements in an array using pointers.
Python Coding questions on String Concepts
- Python Program to print the length of given string.
- Python Program to concatenate two strings.
- Python Program to compare two strings.
- Python Program to perform copy of one string to another string.
- Python Program to convert lowercase string to uppercase.
- Python Program to convert uppercase string to lowercase.
- Python Program to reverse order of words in a given string.
- Python Program to print the frequency of alphabets, digits or special character in a string.
- Python Program to count total number of vowels and consonants in a string.
- Python Program to count total number of words in a string.
- Python Program to find reverse of a string.
- Python Program to check whether a string is palindrome or not.
- Python Program to print the first character in a given string.
- Python Program to print the last character in a given string.
- Python Program to print the frequency of each character in a string.
- Python Program to find highest frequency character in a string.
- Python Program to find lowest frequency character in a string.
- Python Program to remove first character from string.
- Python Program to remove last character from string.
- Python Program to remove all vowels from string.
- Python Program to remove all consonants from a given string.
- Python Program to replace all space with * in a given string.
- Python Program to remove line break from the string.
Python Basic Programs on Array Concepts
- Python Program to take input and print elements of array.
- Python Program to count total number of elements in array.
- Python Program to count total number of even and odd elements in an array.
- Python Program to count total number of negative elements in an array.
- Python Program to print all negative elements in an array.
- Python Program to find reverse of an array.
- Python Program to find reverse of an array without using temp variable.
- Python Program to find sum of all array elements.
- Python Program to print minimum and maximum element in an array.
- Python Program to print second largest element in an array.
- Python Program to copy one array to another array.
- Python Program to insert an element in an array at end.
- Python Program to insert an element in an array at first.
- Python Program to insert an element in an array at given location.
- Python Program to delete an element in an array at end.
- Python Program to delete an element in an array at first.
- Python Program to delete an element from an array at given index.
- Python Program to count and print frequency of each element in an array.
- Python Program to print all unique elements in the array.
- Python Program to count total number of duplicate elements in an array.
- Python Program to delete all duplicate elements from an array.
- Python Program to merge two array to third array.
- Python Program to sperate even and odd number of array in two separate array.
- Python Program to search an element in an array.
- Python Program to sort array elements in ascending order.
- Python Program to sort array elements in descending order.
- Python Program to perform one left rotation on array.
- Python Program to perform one right rotation on an array.
- Python Program to perform two left rotation on array.
- Python Program to perform two right rotation on an array.
- Python Program to check two array are equal in size or not.
- Python Program to find largest and smallest number in array.
- Python Program to find second highest number in an array.
- Python Program to find top two maximum number in array.
- Python Program to merge two arrays.
Python Coding problems on Matrix Concept
- Python Program to add two matrices.
- Python Program to subtract two matrices.
- Python Program to multiply two matrices.
- Python Program to find transpose of a matrix.
- Python Program to find upper triangular matrix.
- Python Program to find lower triangular matrix.
- Python Program to perform Scalar matrix multiplication.
- Python Program to check whether two matrices are equal or not.
- Python Program to find sum of each row and column of a matrix.
- Python Program to find sum of main diagonal elements of a matrix.
- Python Program to find sum of minor diagonal elements of a matrix.
- Python Program to interchange diagonals of a matrix.
- Python Program to find sum of upper triangular matrix.
- Python Program to find sum of lower triangular matrix.
- Python Program to find determinant of a matrix.
- Python Program to check Identity matrix.
- Python Program to check Sparse matrix.
- Python Program to check Symmetric matrix.
Python Coding Questions of Singly Linked List
- Python Program to Create and Traverse a Singly linked list.
- Python Program to Insert a node at the beginning of the Singly linked list.
- Python Program to Insert a node at the End of Singly Linked List.
- Python Program to Insert a node at the Given location of Singly Linked List.
- Python Program to Search an element in the Singly linked list.
- Python Program to Delete a node at the beginning of the Singly linked list.
- Python Program to Delete a node at the End of the Singly linked list.
- Python Program to Delete a node at the Given Location of the Singly linked list.
- Python Program to Reverses the Singly linked list.
Python Coding Questions of Doubly Linked List
- Python Program to Create and Traverse a Doubly Linked List.
- Python Program to Insert a node at the beginning of the Doubly Linked List.
- Python Program to Insert a node at the End of Doubly Linked List.
- Python Program to Insert a node at the Given location of Doubly Linked List.
- Python Program to Search an element in the Doubly Linked List.
- Python Program to Delete a node at the beginning of the Doubly Linked List.
- Python Program to Delete a node at the End of the Doubly Linked List.
- Python Program to Delete a node at the Given Location of the Doubly Linked List.
- Python Program to Reverses the Doubly Linked List.
Python Coding Questions of Circular Linked List
- Python Program to Create and Traverse a Circular Linked List.
- Python Program to Insert a node at the beginning of the Circular Linked List.
- Python Program to Insert a node at the End of Circular Linked List.
- Python Program to Insert a node at the Given location of Circular Linked List.
- Python Program to Search an element in the Circular Linked List.
- Python Program to Delete a node at the beginning of the Circular Linked List.
- Python Program to Delete a node at the End of the Circular Linked List.
- Python Program to Delete a node at the Given Location of the Circular Linked List.
- Python Program to Reverses the Circular Linked List.
Python Coding questions on Searching
- Python Program to perform linear search.
- Python Program to perform Binary Search.
Python Coding questions on Sorting
- Python Program to Implement Bubble Sort.
- Python Program to Implement Selection Sort.
- Python Program to Implement Insertion Sort.
- Python Program to Implement Quicksort.
- Python Program to Implement Counting Sort.
- Python Program to Implement Merge Sort.
- Python Program to Implement Radix Sort.
- Python Program to Implement Bucket Sort.
- Python Program to Implement Heap Sort.
- Python Program to Implement Shell Sort.
Thanks for your blog, nice to read. Do not stop.