Ruby Training "**" Operator Introduced Then Not Explained

Please help me understand what it will mean for this exercise?

"Let’s practice a bit with && . Check out the boolean expressions and set each variable to true or false depending on what value you expect the expression to return.

# boolean_1 = 77 < 78 && 77 < 77

boolean_1 = false

# boolean_2 = true && 100 >= 100

boolean_2 = true

# boolean_3 = 2**3 == 8 && 3**2 == 9

boolean_3 =

https://www.codecademy.com/courses/learn-ruby/lessons/control-flow-in-ruby/exercises/and

Hello @systemsolver26638, welcome to the forums! The ** operator raises the number on the left to the number on the right:

3**2 would be 3 squared, or three to the power of 2

2**3 would be 2 cubed, or two to the power of 3.
1 Like