0% found this document useful (0 votes)
5 views3 pages

Master Listprograms

The document is a master list of practical Python questions categorized into sections including Basic Python & Decision Making, Loop-Based Programs, Number Property Programs, String-Based Questions, List-Based Questions, Real-Life Applications, and User Defined Function-Based Programs. Each section contains various programming tasks aimed at enhancing Python skills, such as checking number properties, manipulating strings, and calculating financial metrics. The list serves as a comprehensive guide for learners to practice and apply Python programming concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Master Listprograms

The document is a master list of practical Python questions categorized into sections including Basic Python & Decision Making, Loop-Based Programs, Number Property Programs, String-Based Questions, List-Based Questions, Real-Life Applications, and User Defined Function-Based Programs. Each section contains various programming tasks aimed at enhancing Python skills, such as checking number properties, manipulating strings, and calculating financial metrics. The list serves as a comprehensive guide for learners to practice and apply Python programming concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

MASTER LIST – PYTHON PRACTICAL QUESTIONS

A. BASIC PYTHON & DECISION MAKING

1. Input a number and check whether it is positive, negative or zero.


2. Input two numbers and print the greater number.
3. Input three numbers and print the largest of all.
4. Input marks of 5 subjects and calculate percentage and grade.
5. Input cost price and selling price and find profit or loss.
6. Input age and determine child / teenager / adult / senior citizen.
7. Input a year and check whether it is a leap year.

B. LOOP-BASED PROGRAMS

8. Print numbers from 1 to 100.


9. Print all even numbers from 1 to 50.
10. Print multiplication table of a number.
11. Print the factorial of a number.
12. Find the sum of digits of a number.
13. Count the number of odd and even numbers in a list.
14. Display prime numbers between 1 and 200.
15. Check if a number is a perfect number.
16. Print the Fibonacci series up to n terms.

C. NUMBER PROPERTY PROGRAMS (Important for ICSE)

17. Write a program to check whether a number is a Spy Number


(Sum of digits == Product of digits).
18. Write a program to check whether a number is a Niven / Harshad Number
(Number % sum of digits == 0).
19. Write a program to check whether a number is a Neon Number
(Sum of digits of square == number).
20. Write a program to check whether a number is an Armstrong Number
(Sum of digits³ == number).
21. Write a program to check whether a number is a Automorphic Number
(Square ends with the same number).
22. Write a program to check whether a number is a Duck Number
(Contains zero but does not begin with zero).
23. Write a program to check prime or composite.

STRING-BASED QUESTIONS

24. Count vowels, consonants, digits, spaces in a sentence.


25. Input a word and check whether it is a palindrome.
26. Print each character of a string line by line.
27. Replace all vowels in a string with *.
28. Count number of words in a sentence.
LIST-BASED QUESTIONS

29. Input 10 numbers and find the maximum and minimum.


30. Input marks in a list and find the average.
31. Input 7 numbers and remove duplicates.
32. Perform linear search to find an element in a list.
33. Input sensor readings of a robot and find:

 highest
 lowest
 total

REAL-LIFE APPLICATION

34. Electricity Bill (Slab Based)

Example:

 0–100 units → ₹5/unit


 101–300 units → ₹7/unit
 300 units → ₹10/unit

Write a program to calculate total bill.

35. Income Tax Slab Calculation

(School-level simple format)

 Income ≤ ₹2,50,000 → No tax


 2,50,001 – 5,00,000 → 5%
 5,00,001 – 10,00,000 → 20%
 Above 10,00,000 → 30%

Input income and calculate tax.

36. Discount Calculation

If total cost > ₹1000, give 10% discount.

37. Simple interest calculator

Input principal, rate, time → compute SI.

38. Store monthly expenses in a list and compute

 Total
 Average
 Highest
 Lowest
USER DEFINED FUNCTION–BASED PROGRAMS (UDF)

1. Write a function to calculate the area of a rectangle.


2. Write a function evenOdd(num) that prints EVEN or ODD.
3. Write a function to return sum of digits.
4. Write a function isPrime(n) that returns True/False.
5. Write a function reverse(num) that returns reversed number.
6. Write a function to check whether a number is:

 Spy
 Neon
 Niven
 Perfect
(use separate functions)

7. Write a menu-driven program using functions:

1. Square
2. Cube
3. Factorial
4. Exit

8. Write a function to return compound interest.


9. Write a function that takes a list and returns the average value.

You might also like