9.2 Code Practice: Question 2
Edit your solution from the previous array height problem by adding additional code that increases the value of the element at (0,2) by a value of 3, and then reprints the array

Expected Output
[[16, 17, 14], [17, 18, 17], [15, 17, 14]]]
[[16, 17, 17], [17, 18, 17], [15, 17, 14]]]

Respuesta :

Answer:

height = []

height.append ([16, 17, 14])

height.append ([17, 18, 17])

height.append ([15, 17, 14])

print(height)

height[0][2] = height[0][2] + 3

print (height)

Explanation:

hope this helps!

The height problem is a sequential program and does not require loops, iteration and conditions.

The additional code segment  that adds 3 to the element at (0,2) is:

height[0][2] = height[0][2] + 3

To reprint the array, we make use of the following print statement:

print (height)

So, the complete program is as follows:

height = []

height.append ([16, 17, 14])

height.append ([17, 18, 17])

height.append ([15, 17, 14])

print(height)

height[0][2] = height[0][2] + 3

print (height)

Read more about sequential programs at:

https://brainly.com/question/13893632