Question: CHALLENGE ACTIVITY 7.1.2: Modify a list. Modify short_names by deleting the first element and changing the last element to Joe. Sample output with input: 'Gertrude

CHALLENGE ACTIVITY 7.1.2: Modify a list. Modify short_names by deleting the first element and changing the last element to Joe. Sample output with input: 'Gertrude Sam Ann Joseph' ['Sam', 'Ann', 'Joe'] Learn how our autograder works 520090 3787368.qx3zay7 1 user_input input() 2 short_names = user_input.split() 3 4 short_names ['Sam', 'Ann', 'Joe'] 5 del short_names [0] 6 = 8 print (short_names)

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!