113k views
5 votes
Write a statement that inserts the value 'wash dog' into the list activities so that it becomes the element at index 2.

User Sunjoo
by
5.5k points

1 Answer

3 votes

I don't have much context on it or what programming language you want so...

activities[2] = 'wash dog'

User IvanMih
by
5.5k points