CBSE BOARD XII, asked by aarifh964, 9 months ago

sampleList = ["Jon", "Kelly", "Jessa"]
sampleList.append(2, "Scott")
print(sampleList) ​

Answers

Answered by NinjaPlays
0

Answer:

Hold on, our servers are swamped. Wait for your answer to fully lo

Explanation:

Answered by pokharelsujan07
0

Answer: error will occur

Explanation:

you cannot use append to locate the index

it will run if you use insert instead of append

append will not take indexing it just add item to last

sampleList = ["Jon", "Kelly", "Jessa"]

sampleList.insert(2, "Scott")

print(sampleList)

Similar questions