PYTHON-LAB-IV-SEM

This repository contains the problems discussed in Programming Essentials in Python Lab II-Year II-Sem at Vignan’s Institute of Information Technology Visakhapatnam

<p align = 'center'> </p>

LIST OF EXPERIMENTS

Ex Name of the Experiment Topics Covered
1 Exercise – 1 </br> (a). Practice Python Installation </br> (b). Declaration of Variables, identifiers and type conversions </br> (c). Write simple programs by defining variables and assigning values of different basic data types </br> (d). Write programs to know data type of a variable usingType statement </br> (e). write programs to do multiple assignments at a time </br> (f). Write programs for writing multiple statements in a single line </br> (g). Use Input statement, type conversion </br> (h). Use different operators in programs Python Installation
2 Exercise – 2 </br> Python programs on Decision Control Statements: </br> (a). Write programs using selection statements </br> (b). Implement programs on and conditional branching statements Decision Control Statements
3 Exercise – 3 </br> Python programs on looping control structures: </br> (a). Design and develop programs using Iterative statements-while, for, nested loops </br> (b). Use Break, continue, pass statements in programs </br> (c). Understand the usage of else statement in loops with a case study Looping Control Structures
4 Exercise – 4 </br> Identify the need and importance in the creation of Python Functions and Modules: </br> (a). Write programs for defining and calling functions </br> (b). Understand Scope of a variable and Use global statement </br> (c). Differentiate fruitful and void functions through a case study </br> (d). Apply recursive and Lambda functions </br> (e). Understand different kinds of arguments through a case study </br> (f). Installing and usage of standard library modules </br> (g). Use python packages Functions and Modules
5 Exercise – 5 </br> Solve the problems using Strings and understanding the methods and operations on Lists: </br> (a). Apply string formatting operator </br> (b). Use built in string methods, functions and regular expressions </br> (c). Define a list and write programs to access and modify elements of a list </br> (d). Practice basic list operations, methods </br> (e). Write programs to use list as a stack and queue Strings Methods and Operations on Lists
6 Exercise – 6 </br> Programs on the implementation of methods and operations of List data structure: </br> (a). Define a list and write programs to access and modify elements of a list </br> (b). Practice basic list operations, methods </br> (c). Write programs to use list as a stack and queue Methods and Operations of List Data Structure
7 Exercise – 7 </br> Simulate all page replacement algorithms: </br> Implement programs to solve the problems using Python other data structures: Tuples and Dictionaries: </br> (a). Write programs to define a dictionary and write programs to modify values, adding new keys </br> (b). Apply looping over a dictionary </br> (c). Use built in dictionary methods, functions </br> (d). Create a tuple and assign values </br> (e). Use basic tuple operations and comparisons Tuples and Dictionaries
8 Exercise – 8 </br> Implement the Python Classes and Objects to address the real-world scenarios: </br> (a). Define classes and objects using python for the real-world scenario </br> (b). Defining constructors and using Self </br> (c). Understand public and private members </br> (d). Practice calling class methods from another class </br> (e). Write built in functions to check, get, set and delete attributes Python Classes and Objects
9 Exercise – 9 </br> Develop the programs to implement parent-child relationship: </br> (a). Demonstrate different inheritance types: </br>  • Single Inheritance </br>  • Multiple Inheritance </br>  • Multileve Inheritance </br> (b). Apply polymorphism and method overriding </br> (c). Create abstract classes Programs on Parent-Child Relationship
10 Exercise – 10 </br> Write the programs to address the exceptions via exception handling in the development of solutions and implement operator overloading: </br> (a). Write a program for catching multiple exceptions </br> (b). Use Break, continue, pass statements in programs </br> (c). Demonstrate raising and re raising exceptions </br> (d). Apply else and finally clauses </br> (e). Demonstrate the usage of polymorphism in overloading of operators Exception Handling & Operator Overloading

*Authored by Gautam Ankoji*

Copyright © 2024 gautamankoji | All rights reserved.