Index
Python Lab Practical Record · Python programming laboratory
Read with diagrams, search and self-test
| Exp. No. | Name of the Experiment | Date | Signature |
|---|---|---|---|
| 1A | Find the maximum of three forces (decision making) | ||
| 1B | Convert Fahrenheit to Centigrade | ||
| 1C | Generate the multiplication table of 5 (control loop) | ||
| 1D | Efficiency of a simple machine | ||
| 2A | Accept two numbers and perform arithmetic operations | ||
| 2B | Calculate age after 5 years | ||
| 2C | Find the area of a rectangle | ||
| 2D | Output speed and torque of a gear system | ||
| 3A | Determine whether a number is even or odd | ||
| 3B | Multiplication table using a for loop | ||
| 3C | Factorial of a number using a while loop | ||
| 3D | Check whether a number is positive, negative or zero | ||
| 4A | Function to calculate the area of a circle | ||
| 4B | GCD of two numbers using a function | ||
| 4C | Lambda function for squaring a number | ||
| 4D | Using the math module for trigonometric calculations | ||
| 5A | List of student names – adding, removing and sorting | ||
| 5B | Convert a list of temperatures from Celsius to Fahrenheit | ||
| 5C | Dictionary for storing a student record | ||
| 5D | Tuples to store and display coordinates in a 2D plane | ||
| 6A | Write random numbers to a file and read them back | ||
| 6B | Handle division by zero using try–except | ||
| 6C | Read data from a CSV file and count the rows | ||
| 7A | Class to represent a car | ||
| 7B | Method overriding | ||
| 7C | Bank account class – deposit, withdraw and balance enquiry | ||
| 8A | Controlling a DC motor using the L298N motor driver with Raspberry Pi | ||
| 8B | Simple automated systems – fan and water pump controllers | ||
| 9A | Sample average and range, X-bar and R charts | ||
| 10A | Mean, variance and standard deviation | ||
| 10B | X-bar and R control charts from sample data |