{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": [],
      "generative_ai_disabled": true
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    }
  },
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "id": "3SRJUNIGzGpZ"
      },
      "outputs": [],
      "source": [
        "fruit = [\"Apple\", \"Banana\", \"Grape\", \"Strawberry\", \"Melon\", \"Orange\"]\n",
        "\n",
        "# Task 1\n",
        "  # Add comments to predict what the following lines of code will do.\n",
        "\n",
        "  # Alter the fourth print command so that it outputs a valid item from the list that hasn't yet been used.\n",
        "\n",
        "#print(fruit[3])\n",
        "\n",
        "#print(fruit[5])\n",
        "\n",
        "#print(fruit[0] + \" \" + fruit[2])\n",
        "\n",
        "#print(fruit[6])\n"
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "# Task 2\n",
        "  # Write code to output the whole list - you should be able to do this with one line of code.abs\n"
      ],
      "metadata": {
        "id": "2w0tsKeQzhBq"
      },
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "# Task 3\n",
        "  # Ask the user to input a number between 0 and 5.  Output the item in the list that matches the number they have input.\n",
        "\n",
        "print (fruit[which])\n"
      ],
      "metadata": {
        "id": "jYlpX9ryzk8I"
      },
      "execution_count": null,
      "outputs": []
    }
  ]
}