Python_lab1 - nimms9/CSEE5590_Python_ICP GitHub Wiki
Python and Deep Learning
Lab Assignment-1
TEAM ID :8
*YOUTUBE 🔗 : *video link
NAME 1: Nimmagadda Sudheer
ID: 17
NAME 2: Uppalapati Adisekhar
ID: 21
NAME 3: Mandava Mahesh
ID: 15
Introduction
- Computes the net amount of each transaction and prints final amount after all transactions.
- Creating a dictionary from list of tuples and print them in sorted order.
- Finding the list of students who are attending both python,web application classes and also who are not common in both classes.
- Finding the longest sub-string without repeating characters along with the length.
- Airline booking reservation system using Oops Concepts.
- Web scrapping using beautiful soup library.
Objectives
- We take input from the user and computed the net amount for the bank transactions using conditional statements in iterative loop.
- We created a dictionary from the list of tuples using set default method and sorted the dictionary
- We used intersection and symmetric difference set operations on the python and web application lists.
- We used dictionary, split() and operator to attain the longest sub-string from a string without having repetitive characters in the sub-string.
- We used oops concepts to develop airline booking reservation system.
- We used beautiful soup library and HTML parser to parse the Web page and find_all() to find table tag and extracted the US states and capitals information. And also written them into a file.
Approaches
- We used O(n^2) complexity for extracting longest sub-string without repetitive characters from a string. We try to improve the complexity to O(n) in future.
Workflow
QUESTION-1
- Computing net amount of bank transaction by taking input from the user console.
PROGRAM
OUTPUT
QUESTION-2
- Creating the dictionary from list of tuples and displaying them in sorted order.
PROGRAM
OUTPUT
QUESTION-3
- Finding the list of students who are common/not common in both the classes using set operations and displaying the list of students.
PROGRAM
OUTPUT
QUESTION-4
- Finding the longest sub-string without repeating characters along with the length.
PROGRAM
OUTPUT
QUESTION-5
- Airline booking reservation system using oops concepts like multiple inheritance, Abstraction, constructor instantiation and super call
PROGRAM
OUTPUT
QUESTION-6
- Writing the information of US states and their capitals into a file using web scrapping (beautiful soup library)
PROGRAM
OUTPUT
- REFERENCES
THE END