Question: ( In Python: i am a beginner so plz write comments so I can follow) 3. This question practices list membership, list indexes and list

( In Python: i am a beginner so plz write comments so I can follow)

3.

This question practices list membership, list indexes and list slices.

A. Write a Python statement that creates a list named dog_breeds that contains the elements

'collie', 'sheepdog', 'Chow', and 'Chihuahua'.

B. Write a Python statement to create a list herding_dogs that is made up of the first two

elements of dog_breeds.

C. Write a Python statement that uses list indexing to create a list tiny_dogs that is made up

of the last element of dog_breeds.

D. Write a Python statement that tests whether 'Persian' is in the list dog_breeds and prints either True or False depending on the answer.

( In Python: i am a beginner so plz write comments so I can follow)

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 Databases Questions!