Complete the code to check if a is equal to b.
if a [1] b puts "Equal" end
The operator == checks if two values are equal in Ruby.
Complete the code to check if x is greater than 10.
if x [1] 10 puts "x is big" end
The operator > checks if the left value is greater than the right value.
Fix the error in the code to check if num is not equal to 5.
if num [1] 5 puts "Not five" end
The operator != means 'not equal' in Ruby.
Fill both blanks to check if age is between 18 and 65 inclusive.
if age [1] 18 && age [2] 65 puts "Adult" end
Use >= to check if age is at least 18, and <= to check if age is at most 65.
Fill all three blanks to create a hash with keys as uppercase words and values as word lengths greater than 3.
result = words.select { |word| word.length [3] 3 }.map { |word| [ [1], [2] ] }.to_hThis creates a hash where keys are uppercase words and values are their lengths, but only for words longer than 3 characters.
