Question : W3Schools Var-Coll-H 28

1️⃣ Fill in the Gap

The method used to add a new item to the end of a list is ___________________.


2️⃣ Short Answer

Look at the list:

fruits = ['apple','banana','water melon','pineapple']

What will this print?

print(fruits[0])

Answer: ___________________


3️⃣ Fill in the Gap

The index position in a list always starts from number ___________________.


4️⃣ Fill in the Gap

The method used to remove the last item from a list is ___________________.


5️⃣ Short Answer

Look at this list:

fruits = ['apple','banana','mango']

Write the statement to insert ‘cherry’ at index position 1.

Answer: ___________________________________________


6️⃣ Fill in the Gap

The function used to count the number of items in a list is ___________________.


7️⃣ Short Answer

What will be printed?

print('a' + 'b' + 'c')

Answer: ___________________


8️⃣ Fill in the Gap

When we use + to join two strings together, it is called ___________________.


9️⃣ Short Answer

Look at this list:

friends = ['jason','mary','janet','jason','mary']

What data collection can we use to remove duplicate names automatically?

Answer: ___________________


🔟 Short Answer

What is the purpose of a try and except statement in Python?

Answer: _______________________

Write what you are looking for, and press enter to begin your search!