I need to create a list that follows the following steps:
1 - create an empty list;
2 - Add the elements: 1, 2, 3, 4, 5, using 'append';
3 - Print the list;
4 - Remove the elements '3' and '6' (do not forget to check if they are in the list);
5 - Print the modified list;
6 - Print the size of the list using 'len';
7 - Change the value of the last element to '6' and print the modified list.
I managed to do it until step 3, but from 4 onwards I can not
My code looks like this:
list = 
Can someone help me?