Programming and Problem Solving Through Python Language Practical Question

If else, while and for Practical Question

  1. Write a program to calculate factorial of a given number (No. input by user) .
  2. Write a program to print fabonacci series ( less than enter no.).
  3. Program to print table of any no. enter by user.
  4. Write a program to check Armstrong number.
  5. Program to display the square and cube of poistive and negative number.
  6. Program to find the total, percentage and grade of five subject of a student.
    Previous year question
  1. Basic -
    1. Write a program to check Armstrong number in a given range enter by user.
    2. Write a program to compute the wage of daily labour as per the following rules:
    3. Write a Python program to multiply two numbers by repeated addition. Example: 6*3=6+6+6
    4. Write a program to calculate the sum of number between 100 and 500 which is divisible by 2.
  2. String -
    1. Write a function that takes a string as parameter and returns a string with every successive repetitive character replaced by ‘!’
    2. Write a python program that takes a sentence as input and displays the number of words, number of capital letter, number of small letter and number of special symbols in the inputted sentence.
    3. Write a program to reverse a string.
  3. List -
    1. Write a Programme to check if an element exists in the list or not. If that element does not exist then add that particular element in the List.
    2. Write a Programme to check if there is a duplicate element Present in the list or not. If that is present in the list then remove it from the List.
    3. Create a list variable L and ask the user to input 10 integer elements into the list.
    4. Write a python function that takes two lists and returns True if they have at least one common item.
  4. Tuple -
  5. Dictionary -
    1. Write a Python program to Sort Python Dictionaries by Key or Value.
  6. Recursion -
    1. Write a Python Program to display Fibonacci Sequence (first 20 terms) using Recursion.
    2. Write a Python Program to find factorial of a number using Recursion.
    3. Write a Python program to find the power of a number using recursion.
  7. Module -
    1. Write a program to calculate number of days between two dates.