Edit Game
Lists in Python - Activity#1
 Delete

Use commas to add multiple tags

 Private  Unlisted  Public



 Save

Delimiter between question and answer:

Tips:

  • No column headers.
  • Each line maps to a question.
  • If the delimiter is used in a question, the question should be surrounded by double quotes: "My, question","My, answer"
  • The first answer in the multiple choice question must be the correct answer.






 Save   6  Close
What is the output of the following segment?
["C"]
Write the Python code that changes the 4th element in list numbers to 9.
numbers[3] = 9
What is numbers [-3]? numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
8
How do you get the length of the list grades? grades = [2.0, 3.0, 4.0]
len(grades)
___________________ method adds a single element to the end of the list.
append( )
____________________ method can be used to add an element at a specified index/location in a list.
insert( )