Python Lab Assignment 2 - AvniM/PythonDL_LabAssignments GitHub Wiki
Task 1:
Write a program that accepts a sentence as input and remove duplicate words. Sort them alphanumerically and print it.
Code Link: https://github.com/AvniM/PythonLabAssignments/blob/master/LabAssignment2/Task1.py
Code Screenshot:
Output Screenshot:
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.
Code Link: https://github.com/AvniM/PythonLabAssignments/blob/master/LabAssignment2/Task2.py
Code Screenshot:
Output Screenshot:
Task 3:
Write a python program to create any one of the following management systems. You can also pick one of your own. Chosen -> Airline Booking Reservation System (classes for Flight,Person,Employee,Passenger etc.)
Code Link: https://github.com/AvniM/PythonLabAssignments/blob/master/LabAssignment2/Task3.py
Code Screenshot:
Output Link: https://github.com/AvniM/PythonLabAssignments/blob/master/LabAssignment2/Screenshots/T3%20Output.txt
Output Screenshot:
Task 4:
Using NumPy create random vector of size 15 and replace the maximum value by 100.
Code Link: https://github.com/AvniM/PythonLabAssignments/blob/master/LabAssignment2/Task4.py
Code Screenshot:
Output Link: https://github.com/AvniM/PythonLabAssignments/blob/master/LabAssignment2/Screenshots/T4%20Output.txt
Output Screenshot: