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

Lab Python

The document outlines a series of programming lab exercises focused on various topics in Python, including basic syntax, control statements, built-in data types, functions, object-oriented programming, file handling, common libraries, and advanced topics. Each section contains specific tasks such as displaying messages, performing calculations, demonstrating data structures, and executing CRUD operations with databases. The exercises aim to enhance practical programming skills and understanding of Python concepts.

Uploaded by

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

Lab Python

The document outlines a series of programming lab exercises focused on various topics in Python, including basic syntax, control statements, built-in data types, functions, object-oriented programming, file handling, common libraries, and advanced topics. Each section contains specific tasks such as displaying messages, performing calculations, demonstrating data structures, and executing CRUD operations with databases. The exercises aim to enhance practical programming skills and understanding of Python concepts.

Uploaded by

thatdumb67
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Labft: Introduction 1). Write program to display “Welcome to Pyiion Programming” 2) Write program to display the ID, name, and aires fom the set 3) Waite program to find the sum and average of three numbers 4) Weitea program to swap 1wo numbers without using a thitd variable 5) Write program o find the area and circumference ofa circle given is radius, 6) Weite a program to calculate simple interest for a given P9000, P°T*R/100) Lab2: Control Statements 1) Write @ program to find the smallest number between 3 entered numbers using if clse statements. 2) Welle e progiam that demoustiotes the use of the break statement and ovations 3) Writea program to find the smallest of three numbers using a conditional operator. 4) Weitea program to find the grade of a student using Switch Case, Labf3: Buil-tn Data Types 1) Write program to demonstrate basic Data Types. 2) Write program to find the Fibonacci series 3) Writea program to check whether the given number i prime or not, 4) Create a list and perform the following methods. 8) insert) b) removed) €) append() d) pope) clear) 5) Write program demonstrating the tuples, st, list, and dictionary ©) Write program to demonstrate the join list 7). Write program to demonstrate the string indexing ad slicing '8) Weitea program to demonstrate packing and unpacking. 9) Weitea program to demonstrate the frozenset, 10) Weitea program to demonstrate at least five built-in ting functions. 1) Weitea program to demonstrate the Union, intersection, ar difference 12) Weitea program to demonstrate the bytes, bytearray, and memonyview, Labs: Functions 1) Write program to demonstrate funetion, passing arguments, default and retum value 2) Write a program to demonstrat the nested function, 3) Write program to demonstrate the module. 4), Weitea program to find the Factorial ofa number using recursion, 5). Write a program to demonstrate the lamba function. 66) Weitea program to demonstrat the reduce) function, Labs: Objectoriented Programming 1) Writea Program to demonstrat the class and object. 2) Weitea program to demonstrate the parameterized constructor, 3) Writea program to demonstrate the method of overloading, 4). Writea program to demonstrat the method! overriding, 5) Write program to demonstrate multilevel inheritance, (6) Writea program to demonstrate the comparison operators. 7). Write a program to demonstrate the abstract class and method, 8) Writea program to demonstrate the interface class. 9). Weitea program that throws an exception and catches it using a ty-catch block. 10) Weite a program to ereate our own exception, 11) Write program to demonstrate the packages. 12) Weitea program to demonstrate the enumerate Labi ile Handling 1) Writea program to create the file, wit the file, and read the fl 2) Weitea program to demonstrate the OS macule and common functions, Labé7: Common Python Libraries 1) Using aNumPy module, create an array and cheek the following 8) Type of array b) Axes of array e)Shape of array d)Type of element in array 2) Write program to concatenate the datafiames with two different object 3) Wrtea program to demonstrate Statistical fictions, 44) Wrteacode to read a CSV file using the Pandas module and print the frst i five lines of fle '5)_ Wate program that accepts the adi ofa cite fom the user and computes the area(Use the math module). (6) Write program to demonstrate Matpotlib and last, Labs: Advanced Topics 1) Weitea program to demonstrate Crud operation using MySQL. 2) Writea program to demonstrate Crud operation using SQLite

You might also like