Py-datatypes-hw hw-2

Conisder the following list: list = [2, 0, 1, 0] According to the question, write down the code or the output

Notes: These are not sequential, the code is only affecting the original list. Answers should only be 1 line long

  1. Output: 4
  • Code: ?
  1. Output: ?
  • Code: print(list[0])
  1. Output: ?
  • Code: print(list.count(0))
  1. Output: ?
  • Code: print(list[4])
  1. Output: ?
  • Code: 2 in list
  1. Output: [2, 0, 1, 0, 'A']
  • Code: ?
  1. Output: [0, 0, 1, 2]
  • Code: ?
  1. Output: [2, 0, 1]
  • Code: ?
  1. Output: [0, 1]
  • Code: ?
  1. Output: [0, 1, 0, 2]
  • Code: ?