The program below creates a list of 5 pet names. Add print() statements as shown in the following steps to print parts of the list.

Print the entire list by passing the variable name into print()
Print the first element in the list by using square brackets and the first element index number
Print the last element in the list by using square brackets and the last element index number
Print the middle three elements in the list by specifying a range in square brackets
The following example demonstrates the expected program output.

('Chewy', 'Yakker', 'RageCat', 'Mr. Barkey', 'Furball')
Chewy
Furball
('Yakker', 'RageCat', 'Mr. Barkey')

petNames = ("Chewy","Yakker","RageCat","Mr. Barkey","Furball")

petNames = ("Chewy","Yakker","RageCat","Mr. Barkey","Furball")

# Print the entire list by passing the variable name into print()
print(petNames)

# Print the first element in the list by using square brackets and the first element index number
print(petNames[0])

# Print the last element in the list by using square brackets and the last element index number
print(petNames[-1])

# Print the middle three elements in the list by specifying a range in square brackets
print(petNames[1:4])

Summary: 5 tests run, 4 tests passed, Original Grade = 80.0

------------------------------------------------------------------------------

PASSED: Source Test 1: Print the entire list (+20.0)
PASSED: Source Test 2: Print the first element (+20.0)
PASSED: Source Test 4: Print the middle 3 elements (+20.0)
PASSED: Output Test 5: Verify program output (+20.0)
FAILED: Source Test 3: Print last element (-20.0)

Apologies for the mistake in the previous response. The correct code to print the last element in the list would be:

```
# Print the last element in the list by using square brackets and the last element index number
print(petNames[-1])
```

Please try it again and let me know if you have any further questions or issues.