Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started