Question from the Python test

Change the value of a nested list element in Python

Hard

What will be the result of :

nested_list = [['_'] * 3] * 3
nested_list[1][2] = '99'
print(nested_list)
Author: El MehdiStatus: PublishedQuestion passed 270 times
Edit
5
Community EvaluationsNo one has reviewed this question yet, be the first!