Assignment 2
1. Create a list ORISSA with atoms [BBSR CTC PURI PDP BHR]. Find the length of the list. Remove PURI from the list.
2. Create a list INDIA with 8 elements of your choice. Delete the fourth element and insert your name in the first position.
3. Create a list CRICKET with 10 elements and perform the following operations:
a) Insert a sublist in the first place
b) Remove the eighth element
c) Change the list by inserting a new element in the first place without using CONS
4. Create a list of four sublists and use the key of the second sublist to retrieve information using ASSOC.
1. Create a list ORISSA with atoms [BBSR CTC PURI PDP BHR]. Find the length of the list. Remove PURI from the list.
2. Create a list INDIA with 8 elements of your choice. Delete the fourth element and insert your name in the first position.
3. Create a list CRICKET with 10 elements and perform the following operations:
a) Insert a sublist in the first place
b) Remove the eighth element
c) Change the list by inserting a new element in the first place without using CONS
4. Create a list of four sublists and use the key of the second sublist to retrieve information using ASSOC.
No comments:
Post a Comment