Cannot repeat my first lesson in Ruby

It looks like you used a multiplication sign, " * ", instead of an equal sign, " = ".

Here’s what it looks like when a multiplication sign is used:

Screenshot 2023-01-07 071450

Here’s what it looks like if an operator is left out:

Screenshot 2023-01-07 071648

You need to use an " = " to assign the values to the variables.

Screenshot 2023-01-07 072031

Fix the syntax and it will work.

Also, in the future, don’t use images to show your code. Instead, use a triple back tick, " ``` " (on the tilde key, upper left of keyboard). Just put the back ticks in before and after your code and it will show like the following:

first1 = [30, 10, 0]
=> [30, 10, 0]

second = [30, 30, 0]
=> [30, 30, 0]

third = [60, 30, 0]
=> [60, 30, 0]
fourth [60, 10, 0]
Error: #<NoMethodError: undefined method `fourth' for main:Object>
<main>:in `<main>'
SketchUp:in `eval'
=> nil
fourth = [60, 10, 0]
=> [60, 10, 0]
fourth2 *[10, 20, 30]
Error: #<NoMethodError: undefined method `fourth2' for main:Object>
<main>:in `<main>'
SketchUp:in `eval'
=> nil
1 Like