Lab 1 - SASLEENREZA/Python_DeepLearning GitHub Wiki

Team ID: 15

Name : Sasleen Reza Shaik, Class ID : 27

Name : Navya Ramya Sirisha, Class ID : 24

Wiki link : https://github.com/navyaramyasirisha/PYTHON2018FALL/wiki

Youtube link : Click me

Introduction :

This lab assignment deals with implementing various functions of Python programming.

Objective :

The principle objective of this assignment is to have a brief exposure various concepts of Python like

  1. Sets, lists, tuples, dictionaries, files etc
  2. OOPS concepts
  3. Packages like Beautiful Soup

Problem-1 : First non-repeating character search

Approach:

In this program, we took the input of user’s choice and we generated the first non-repeating character from the input as output.

Output:

Problem-2 : File Content Removal

Approach:

In this, we took two files as input and deleted the contents of file 2 from file 1 and saved the output in file 1.

Output:

Problem-3 : Students List

Approach:

Created two lists of students for python and web-apps class. Then each of it is converted to their respective sets. Then set difference is applied and converted back to list again to get the required output.

Output:

Problem-4 : Hospital Management System (OOPS)

Approach:

Created classes for doctor, patient, nurse, log book, clerk, hospital and declared parameters for each of them. Implemented inheritance for doctor class. Also, implemented multiple inheritance for hospital class. Initialized each parameter of every class using constructor. Created private variable disease for patient class. Finally passed instances for hospital class to obtain the required output.

Output:

Problem-5 : Web Parsing

Approach:

Used beautiful soup package to extract the table data from given URL and stored it in the form of table in excel file.

Output:

Conclusion:

The above programs are the applications of whatever concepts we learned from beginning. This helps to think the logic and apply the features practically.