Computer Science, asked by aaakings6986, 2 months ago

monuments=[ 'Kutub Minar', 10, 'Taj Mahal', 20, 'India Gate', 30, 'Char Minar', 40] states=['Delhi', 'Kerala', 'Tamil Nadu', 'Bihar'] Write Python statements for the following: a. To insert "Red Fort" at index number 5 b. To add 50 at the end of the list c. To add list states at the end of the list monuments d. To replace 3rd, 4th and 5th element of the monuments list by "India". e. To remove the third element from the list monuments. f. To delete 3rd to 5th elements from the list monuments. g. To display the index number of the element "Kerala" from the states list. h. To check whether element 20 is present in the list or not.

Answers

Answered by shreyanshkr636
3

Answer:

monuments=[ 'Kutub Minar', 10, 'Taj Mahal', 20, 'India Gate', 30, 'Char Minar', 40] states=['Delhi', 'Kerala', 'Tamil Nadu', 'Bihar'] Write Python statements for the following: a. To insert "Red Fort" at index number 5 b. To add 50 at the end of the list c. To add list states at the end of the list monuments d. To replace 3rd, 4th and 5th element of the monuments list by "India". e. To remove the third element from the list monuments. f. To delete 3rd to 5th elements from the list monuments. g. To display the index number of the element "Kerala" from the states list. h. To check whether element 20 is present in the list or not.

Similar questions