+ 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..

21st Mar 2018, 7:25 AM
Pradipsinh Jadeja
Pradipsinh Jadeja - avatar
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]]
2nd Aug 2022, 4:28 PM
Idoredid123
Idoredid123 - avatar