Lezione ruby,uguale o no


#1

https://www.codecademy.com/courses/ruby-beginner-pt-BR-th82o/1/1

is_true = 2 == 3

is_false = 2 = 3
if is_true==is_false
    elsif is_false=is_true
    print"non sto capendo granchè!"
end

cosi è come ho scritto,ma appare l'errore dicendo che non ho utilizzato! = nel codice.


#2

Too much code, for starters. We need only the first two lines.

We start out with this:

is_true = 2 __ 3

is_false = 2 __ 3

Temos duas variáveis no editor: is_true e is_false. Substitua o __ por == ou != para que is_true resulte em true e is_false resulte em false.

What would make the first expressoin yield true in the statement? 2 does not equal 3 is a true expression.

is_true = 2 != 3

What would make the second expression yield false in the statement? 2 equal to 3 is a false expression.

is_false = 2 == 3

Starting to make sense?

Hopefully this all translates properly to Italian.

Clarification:

       [expression]
         \      /
is_true = 2 != 3
\              /
  [statement]