0% found this document useful (0 votes)
2 views

Python Exp 3

The document outlines several Python programming tasks, including creating functions to check for perfect numbers and pangrams. It also includes a menu-driven calculator, a program to calculate the square and cube of a number using decorators, and a menu-driven program for list operations. Each task emphasizes different programming concepts and functionalities in Python.

Uploaded by

B43 VEDANT KADAM
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Python Exp 3

The document outlines several Python programming tasks, including creating functions to check for perfect numbers and pangrams. It also includes a menu-driven calculator, a program to calculate the square and cube of a number using decorators, and a menu-driven program for list operations. Each task emphasizes different programming concepts and functionalities in Python.

Uploaded by

B43 VEDANT KADAM
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment - 3

1. Write a Python function to check whether a number is perfect or not.


(Note : The first perfect number is 6, because 1, 2, and 3 are its proper positive
divisors, and 1 + 2 + 3 = 6. Equivalently, the number 6 is equal to half the sum
of all
its positive divisors: ( 1 + 2 + 3 + 6 ) / 2 = 6. The next perfect number is 28 = 1 +
2+
4 + 7 + 14. This is followed by the perfect numbers 496 and 8128.)
OR
1. Write a Python function to check whether a string is a pangram or not.
(Note : Pangrams are words or sentences containing every letter of the
alphabet at
least once.
For example : "The quick brown fox jumps over the lazy dog")
2. Python menu driven program to develop simple calculator using variable
length argument.

3. Python program to calculate square and cube of a number and use two
decorators, one to increase result by 4 and another to multiply result by 2.
4. Write menu driven python program that accept list of numbers and
performs
following operation on list written in another module
● Summation of all elements
● Product of all elements
● Summation of elements at even indices
● add elements in the list

You might also like