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

Python Practical File

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Python Practical File

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a Python program that determines whether a given number


(accepted from the user) is even or odd, and prints an appropriate
message to the user.
2. Write a Python program to compute the future value of a specified
principal amount, rate of interest, and number of years.
3. Write a Python program to remove duplicates from a list.

4. Write a Python function that takes a number as a parameter and checks


whether the number is prime or not.

5. Write a Python program to get the 4th element from the last element of a
tuple.

6. Write a Python function to multiply all the numbers in a list.

7. Write a Python function to calculate the factorial of a number (a non-


negative integer). The function accepts the number as an argument.
8. Design a sample Simple registration form using Python Tkinter having
following fields:
a. ID
b. Name
c. Father’s Name
d. Gender
e. Phone Number
f. Email
g. Address
h. Submit Button
9. Write a Python program to implement multi level inheritance.
10. Write a Python program to create bankaccount class with following
attributes:
a. Data Member: Account No., Name, Account type, balance.
b. Member method: create account, deposit, withdrawl & display.
c. Create new accounts and display data when deposit or
withdrawal operation is performed.

You might also like