Computers

8th -

9th

Image

Python Lists

1.2K

10 questions

  • 1. Multiple Choice
    30 seconds
    1 pt

    Which of these is the best description of a list in Python?

    A list is a collection of data that has an order and can be changed

    A list is a lot of variables

    A list is used for shopping

    A list is a collection of data that cannot hold duplicated data and cannot be changed

  • 2. Multiple Choice
    1 minute
    1 pt

    Which of these is the correct code for creating a list of names?

    nameList = John, Harry, Jesse, John, Harry, Harry

    nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

    nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

    nameList = [John, Harry, Jesse, John, Harry, Harry]

  • 3. Multiple Choice
    30 seconds
    1 pt

    List items have an index number. In the following list, which item has the index number of 3?

    ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

    "John"

    "Harry"

    "Jesse"

  • Answer choices
    Tags
    Answer choices
    Tags