Quiz Catalog

Catalog of quizzes

a = ["Jake", "Mike", "Brien", "Tim", "George", "Heisenberg"]
a.insert("Kenny", 14)

print(a)
TypeError: 'str' object cannot be interpreted as an integer
  • list/operation/insert

a = ["Jake", "Mike", "Brien", "Heisenberg"]
a.insert(14, "Kenny")

print(a)
['Jake', 'Mike', 'Brien', 'Heisenberg', 'Kenny']
  • list/operation/insert

a = [1]
a.insert(4, 3)

print(a)
[1, 3]
  • list/operation/insert