[Ruby] [ruby] Drill output

less than 1 minute read

Content

image.png

Implementation

image.png

Comment

First, in the third line, retrieve the value [“apple”, [200, 250, 220]] from fruits_price and assign it to the variable fruit. Then, in the 4th to 7th lines, we take out the values one by one from the first value [200, 250, 220] of fruit, and output sum while self-substituting.

Tags:

Updated: