+ 1
Help me to solve the code #0006
can somebody explain it in detail how this thing is happen....? https://code.sololearn.com/cHuvXssS7Fp0/?ref=app and how to access inner list and change its values..
1 Answer
0
Basically you have the object Arr which is a list []. The first element of the list (index 0) is 7 the 2nd is 8 and the last is 7. When you declare the variable Arr you multiply this list [7,8,7] * 3 which is --> [[7,8,7], [7,8,7], [7,8,7]]