Question: 1 - Create and print a list containing the first names of your parents and grandparents. 2 - Using slicing, print this list without the

1- Create and print a list containing the first names of your parents and grandparents.
2- Using slicing, print this list without the first and the last time.
3- Using slicing, print every other name (i.e., first, third, fifth, ...) from this list.
4- Create a variable name with the content "Martin". Create a code using if-else statements that print "In list" or "Not in list" depending on whether the content of the variable name is in the list you created in 1.
5- Using list methods to print your list of names sorted alphabetically.
6- Write a code that allows you to add or remove a name from your list. Examples of interactions with the program would for example look like this:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!