Write a program to create a list of the first five alphabets. Now insert the 6th alphabet using the append
function.Then, delete the third alphabet using the pop function. Display the list.
Answers
Answered by
1
By using the list() function, we can convert any given string to a list.
Using the append() function, we can add anything to the end of the list.
Using the pop() function, we can remove and also display (if needed/printed) anything from the list.
The program has been attached above with the output. Kindly check it!
Attachments:
Similar questions