Python Most Important Practical Question For O Level: (M3-R5)

  1. Write a program to print all Armstrong numbers in a given range.
  2. Write a function to obtain sum n terms of the given series for any positive integer value of X.
  3. Write a function to obtain sum n terms of the given series for any positive integer value of X.
  4. Write a program to multiply two numbers by repeated addition.
  5. Write a program to compute the wages of a daily laborer according to specified rules.
  6. Accept the name of the laborer and the number of hours worked, then calculate and display the wages. The program should run for N number of laborers as specified by the user.
  7. Write a function that takes a string as a parameter and returns a string with every successive repetitive character replaced by a question mark.
  8. Write a program that takes in a sentence as input and displays the number of words, number of capital letters, number of small letters, and number of special symbols.
  9. Write a Python program that takes a list of numbers as input from the user and produces a cumulative list.
  10. Write a program which takes a list of numbers as input and finds the largest number, smallest number, and product of all the items in the list.
  11. Write a Python function that takes two lists and returns True if they have at least one common item.
  12. Write a Python program to combine two dictionaries adding values for common keys.
  13. Write a program that takes a sentence as input from the user and computes the frequency of each letter using a dictionary.
  14. Apply recursive call to compute the product of two numbers using repetitive addition.
  15. Apply recursive call to print Fibonacci series up to term n.
  16. Write a program to input two numbers as input and compute the greatest common divisor.
  17. Write a NumPy program to find the most frequent value in an array.
  18. Take two NumPy arrays having two dimensions and concatenate the arrays on axis 1.

Leave a Reply

Your email address will not be published. Required fields are marked *