Inside the loop, we check if the element is equal to 3. If it is, we replace it with 10. After executing this code, the updated list will be [1, 2, 10, 4 ...
確定! 回上一頁