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 176 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!