First, on the third line, we take the value ["apple", [200, 250, 220]] from fruits_price and assign it to the variable fruit. After that, on the 4th to 7th lines, the values are extracted one by one from the first value [200, 250, 220] of fruit, and sum is output while self-assigning.
Recommended Posts