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
Programme: Computer Engineering Semester: IV
Course: Programming in Python Course code: PRP228918
TA Assignment for Absent Students
Q.1 Explain Abstract class and Interface with suitable example. Q.2 Write multithreaded python program to count numbers which are multiples of 4 between 1 to 400. Create 2 user defined threads and divide the task equally between them Q.3 Explain the working of “place()” geometry manager with suitable code snippet Q.4 State the significance of pass statement with suitable examples. Q.5 Write a Python Program to design Login form and display if it is authenticated user or not. (USING GUI TKINTER) Q.6 Develop a Tkinter Frame to have 2 textboxes for entering units and displaying the calculated electricity bill. (use grid() geometric manager) The bill should be calculated as per below details: Consumption units Rate of charge 0-180 Rs. 40 plus 60 paisa per unit 181-240 Rs. 80 plus 80 paisa per unit excess of 180 241-300 Rs. 120 plus 90 paisa per unit excess of 240 Above 300 Rs. 160 plus Rs. 01 per unit excess of 300 Place label wherever applicable. Also store the record into MySQL table named “consumers” Q.7 Explain Lambda function with suitable example program Q.8 Explain the built-in attributes of a class. Q.9 Write a Python program to filter a dictionary based on values. Original Dictionary: {'Cierra Vega': 175, 'Alden Cantrell': 180, 'Kierra Gentry': 165, 'Pierre Cox': 190} Marks greater than 170: {'Cierra Vega': 175, 'Alden Cantrell': 180, 'Pierre Cox': 190} Q.10 Write a Python program that executes an operation on a list and handles an IndexError exception if the index is out of range