Lesson 12: Lists: Many Items, Plus Indexing and Append

A list holds many items in order. append adds one item at the end and len counts the items. Change the fruit you add and run again.

Loading Python… this can take a few seconds the first time. Please wait — the Run button will become available when Python is ready.

Try this: Change the fruit to mango and press Run again — mango appears at the end of the list.

The code that runs



Output

Press Run to see the output here.