Skip to content

Lab Assignment 1

Ruthvicp edited this page Feb 14, 2019 · 11 revisions

Submitted By

  • Ruthvic Punyamurtula (Problems - 1,2,4)
  • Sai Charan Kothapalli (problems - 3,5,6)

Resources

Introduction

This is lab assignment 1 of cs5590 - python/Deep Learning class. This assignment gives a head start for python programming required for ML and DL. This lab is based on the tasks done in ICE 1, ICE 2 & ICE 3 which can be found here

Objective

This lab assignment focuses on Implementing the below concepts

  • Classes & inheritance
  • Handling tuples and dictionaries
  • Practice Lists & Sets
  • String operation
  • Solving a use case based problem
  • Sorting on values

Approaches/Methods

We have used python3 to create classes and their objects based on the efficient algorithm time complexities. Most of the work here is based on user's standard input but not the static ones.

Workflow

1. Write a program to find the net final amount of a bank account

Code Snippets

Output

2. Create a dictionary from list of tuples & sort them

Code Snippets

Output

3. Finding i) A intersection B ii) (A union B) - (A intersection B)

Code Snippets

Output

4. Longest substring with unique characters

Code Snippets

Output

5. Flight Reservation System

Code Snippets

Output

6. Web Scraping to find states and Capitals

Code Snippets

Output

This output is also saved to file (https://github.com/Ruthvicp/CS5590_PyDL/blob/master/Module1/Lab_Assignment/Lab1/Source/output.txt)

Conclusion

We have understood and implemented the concepts of tuples, dictionaries and used them in classes. Also used beautiful soup as a part of web scraping and developed a use case based approach

Clone this wiki locally