What will be the result of this code?
import array arr = array.array('i', [1, 2, 3]) arr.append(4) print(arr.tolist())
[1, 2, 3]
[1, 2, 3, 4]
[4, 3, 2, 1]
Error due to type mismatch
This question is part of this quiz :