python3 array 1

python3 array

Array = [1,2,3,4,5]

Here is what the above code is Doing:
1. We’re creating a new array called newArray.
2. We’re setting the value of newArray to be the value of oldArray.
3. We’re changing the value of oldArray[0] to be 6.
4. We’re printing the value of newArray[0].

What do you think the value of newArray[0] will be?

Similar Posts