Skip to content

Lab_2 Wiki

Bhavya Teja edited this page Sep 20, 2017 · 2 revisions

Welcome to the Python-DeepLearning_CS5590 Lab 2 wiki!

The Lab 2 mainly focuses on the object-oriented programming of the python language and also the implementation of the numpy package.

Task 1:

The Task 1 is to write a python program that accepts a sentence as input and remove the duplicate words. And later Sort them alphanumerically and print it.

Here is the Screenshot of the Code:

Here is the Screenshot of the Result:

Task 2:

The Task 2 is to write a python program to generate a dictionary that contains (k, k*k) and print the dictionary generated and the series should include both 1 and k.

Here is the Screenshot of the Code:

Here is the Screenshot of the Result:

Task 3:

The Task 3 is to create a Student enrollment system using the object-oriented python programming.

Here are the Screenshots of the Code:

Here are the Screenshots of the Result:

Task 4:

The Task 4 is to create a random vector of size 15 and replace the maximum value by 100 using numpy.

Here is the Screenshot of the Code:

Here is the Screenshot of the Result:

Clone this wiki locally