Lab #2 - Mahmooduddin/CS5590-Python GitHub Wiki

Task 1. Write a program that accepts a sentence as input and remove duplicate words .Sort them alphanumerically and print it.

Solution:

Task1

SourceCode - Task1

Task 2. With any given number n, Write a program to generate a dictionary that contains (k, k*k) .Print the dictionary generated and the series should include both 1 and k.

Solution:

Task2

SourceCode Task2

Task 3. Write a python program to create management system.

Solution:

Task3

SourceCode - Task3

Task 4. Using Numpy create random vector of size 15and replace the maximum value by 100.

Solution:

Task4

SourceCode Task4