The document contains a list of practical Python programming questions and tasks. These tasks cover a wide range of topics including data conversion, mathematical calculations, string manipulation, class creation, exception handling, and using libraries like NumPy. Each question is designed to test different programming skills and concepts in Python.
The document contains a list of practical Python programming questions and tasks. These tasks cover a wide range of topics including data conversion, mathematical calculations, string manipulation, class creation, exception handling, and using libraries like NumPy. Each question is designed to test different programming skills and concepts in Python.
1. Write a program to convert bits to MB, GB, & TB
2. Write a program to calculate surface volume and area of a cylinder 3. Write a program to check if a number is positive, negative or zero 4. Write a program that takes marks of 5 subjects and displays grade 5. Write a program to print Fibonacci series 6. Write a program that takes a number and checks whether it is palindrome or not 7. Write a program to get smallest and largest number from list 8. Write a program to select the even items of a list. 9. Create a tuple and find the minimum and maximum number from it 10. Write a Python program to find the repeated items of a tuple. 11. Write a Python program to perform following operations on set: intersection of sets, union of sets, set difference, symmetric difference, clear a set. 12. Write a Python program to create a set, add member(s) in a set and remove one item from set 13. Write a Python program to find maximum and the minimum value in a set. 14. Write a Python script to sort (ascending and descending) a dictionary by value 15. Write a Python script to concatenate following dictionaries to create a new one. a. Sample Dictionary: b. dic1 = {1:10, 2:20} c. dic2 = {3:30, 4:40} 16. Write a Python function that accepts a string and calculate the number of upper case letters and lower case letters without using built-in function. 17. Write a Python function that takes a number as a parameter and check the number is prime or not. 18. Write a Python program to create a user defined module that will ask your college name and will display the name of the college 19. Write a Python program that will display Calendar of given month using Calendar Module 20. Write a Python program that will calculate area and circumference of circle using inbuilt Math Module 21. . Write a Python program to create two matrices and perform addition, subtraction, multiplication and division operation on matrix. 22. Write a Python program to create a class to print the area of a square and a rectangle. The class has two methods with the same name but different number of parameters. The method for printing area of rectangle has two parameters which are length and breadth respectively while the other method for printing area of square has one parameter which is side of square. 23. Write a Python program to create a class 'Degree' having a method 'getDegree' that prints "I got a degree". It has two subclasses namely 'Undergraduate' and 'Postgraduate' each having a method with the same name that prints "I am an Undergraduate" and "I am a Postgraduate" respectively. Call the method by creating an object of each of the three classes. 24. Create a class Employee with data members: name, department and salary. Create suitable methods for reading and printing employee information 25. Write a Python program to implement multiple inheritance 26. Write a Python program to Check for ZeroDivisionError Exception 27. Write a NumPy program to generate six random integers between 10 and 30. 28. Write a Python program to create user defined exception that will check whether the password is correct or not? 29. Write a Python program to generate a random float where the value is between 5 and 50 using Python math module. 30. Write a Python function to calculate the factorial of a number (a non-negative integer). The function accepts the number as an argument. 31. Write a Python program to print all even numbers between 1 to 100 using while loop. 32. Write a Python Program to Reverse a Given Number
[Ebooks PDF] download Clinical Anatomy and Physiology of the Visual System, 4e (Aug 9, 2021)_(0323711685)_(Elsevier) 4th Edition Remington Od Ms Faao full chapters