What is the number in square brackets?
In colours[1], what is the number 1, which picks out a single item by its position, called?
Start activityTopics / Lists
Ordered collections, indexing, and aggregation over items.
List processing is a common AI default. Students should be able to say whether a fragment is searching, counting, filtering, or reducing — and whether the empty list is handled.
In colours[1], what is the number 1, which picks out a single item by its position, called?
Start activityMatch each term to the definition that fits it. The code is there so you can see what each term refers to; …
Start activityWhat overall problem is this program solving? Avoid describing only the syntax.
Start activityThe program should print only the names with more than 3 letters. Modify it. You may write the new code or describe …
Start activityA student predicts this program prints [1, 2, 3] and says: 'I only added 4 to b, so a is untouched.' Which …
Start activityThis program counts passing marks (50 or more). Extend it so it also builds a new list called passed that contains the …
Start activityAn AI generated this function to report whether a list contains any negative number. It passes every test you try. Which review …
Start activity