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. https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/1.JPG?raw=true

PROGRAM

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/1code.JPG?raw=true

OUTPUT

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/1out.JPG?raw=true

QUESTION-2

  • Creating the dictionary from list of tuples and displaying them in sorted order.

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/2.JPG

PROGRAM https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/2code.JPG

OUTPUT https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/2out.JPG

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.

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/3.JPG?raw=true

PROGRAM

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/3code.JPG?raw=true

OUTPUT

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/3out.JPG?raw=true

QUESTION-4

  • Finding the longest sub-string without repeating characters along with the length.

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/4.JPG?raw=true

PROGRAM

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/4code.JPG?raw=true

OUTPUT

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/4out.JPG?raw=true

QUESTION-5

  • Airline booking reservation system using oops concepts like multiple inheritance, Abstraction, constructor instantiation and super call

PROGRAM

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/5.JPG?raw=true

OUTPUT

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/5out.JPG?raw=true

QUESTION-6

  • Writing the information of US states and their capitals into a file using web scrapping (beautiful soup library)

PROGRAM

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/6.JPG?raw=true

OUTPUT

https://github.com/nimms9/CSEE5590_Python_ICP/blob/master/Lab-1/Documentation/6out.JPG?raw=true

  • REFERENCES
  1. https://stackoverflow.com/questions/tagged/python

2.https://docs.python.org/3/

                                                     THE END