Question: Write a function add _ three _ elements 0 that appends the element 'end' three times to the end of a list parameter. Click here

Write a function add_three_elements 0 that appends the element 'end' three times to the end of a list parameter.
Click here for example
Ex: If the input is:
The wheels on the bus go round and round
then the output is:
['The', 'wheels', 'on', 'the', 'bus', 'go', 'round', 'and', 'round', 'end', 'end', 'end']
1
I'. Your code goes here ...
value_list = input (). split()
add_three_elements(value_list)
print(value_list)
 Write a function add_three_elements 0 that appends the element 'end' three

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!