Create a program using an array, a for loop, and an if statement that checks a group of 5 kids to see whether they have gloves.

Create a Python program that checks whether kids in a group have enough gloves.

Task description:

  1. Create a list (array) with 5 numbers.
  2. Use a for loop to go through the list.
  3. Use an if statement to check whether a child has at least 2 gloves.
  4. If the condition is true, print the index of that child.

Expected result:

Important notes: