1) Write a Python class named Student with two attributes student_id, student_name. Add a new attribute student_class and display the entire attribute and their values of the said class. Now remove the student_name attribute and display the entire attribute with values.
User input is required.
You need turn in one input (at least four students, and make your code reusable) and output.
2) Write a Python class to get all possible unique subsets from a set of distinct integers. User input is required for the reusable code.
Input : [4, 5, 6]
Output : [[], [6], [5], [5, 6], [4], [4, 6], [4, 5], [4, 5, 6]]
Turn in the above input and output from your running result as one image and your codes as a word file or PDF file.


0 comments