0% found this document useful (0 votes)
10 views2 pages

Week6

Uploaded by

sjjjjadhav
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)
10 views2 pages

Week6

Uploaded by

sjjjjadhav
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
You are on page 1/ 2

1. Write a program to print the below patterns?

1
23
456
7 8 9 10
11 1 2 13 14 15

2. A
B B
C C C
D D D D
E E E E E
3. A
B C
D E F
G H I J
K L M N O

4. * * * * * *
*****
****
***
**
*
**
***
****
*****
*******
5. Write a python program for demonstrate instantiating a class name student?
6. Write a python Program to define a class student to display his name, age, and marks?
7. Write a python program to display the average marks of student with the help of __init__ Method?
8. Write a python program to display the details of dog’s name, breed, and color using class?
9. Write a python program to create Student class with constructor having more than one parameter?
10. Write a python class to understand the instance variables?
11. Write python class triangle, enter its three sides and calculate its area and display?
12. Write a program that uses a class attribute to define some default titles for faculty in a college.
13. Display the name along with title and department of the college?
14. Write a program that has a class Cars. Create two objects and set carl to be a red convertible with
price ₹10 lakhs and name Pugo, and car2 to be a blue sedan named Mavo worth 36 lakhs.
Print the data as it is. (Assume required methods)?
15. Write a class to read, display, simplify, add, and subtract two fractions?
16. Write a class to read, display, add and subtract two complex number?
17. Write a class to read, display, add, and subtract two distances?
18. Write a class to read, display, add, and subtract two time objects?
19. Write a class to read , display, add, and subtract two height objects?
20. Write a class that has a list of integers as data members and read(), display(), find_largest (), find_
smallest(), sum() of the data members?
21. Make a class Book with members, title, author, publisher, and ISBN number. The functions of the
class should read and display the data.
22. Write a program that has a class student with data members-roll_no and marks in three subjects.
Make at least four objects of this class. Use one or more functions that finds total of each student and
then sorts the student's records in descending order based on their marks.
23. Write a menu driven program to read, add, and subtract two polynomials.
24. Write a menu driven program to add or delete items from your inventory of stationary items. You can
use a dictionary to store item and the brand?
25. Write a menu driven program to read, add, subtract, multiply, divide, and transpose two matrices?
26. Write a program that displays the details of a cricket player. The details must include his name,
matched played, run rate, wickets taken, maiden overs, overs played, number of centuries, and half
centuries?

You might also like