I need some help on And 9/17 Control Flow in RUBY PLZ


#1

(This is my code)

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && False =! False

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

boolean_3 = True && True =! True

its say this
Oops, try again. It looks like your value for boolean_2 isn't correct.


#2
77 < 78   &&   77 < 77
  true          false

Evaluating, true && false, gives false, so,

boolean_1 = false

Follow this line of reasoning to evaluate the remaining expressions.


#3

well i did that on boonlean _2

boolean_2 = true && 100 >= 100

boolean_2 = True && False =! False


#4

but it still does not work


#5

when it says

boolean_2 = true && 100 >= 100

What should the results of boolean_2 equal to if boolean_2 = true && 100 >= 100


#6

well now i did this and it still says some thang wrong with boonlean_2

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = False

boolean_2 = true && 100 >= 100

boolean_2 = False

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

boolean_3 = True


#7

oh wait let me try that


#8

what do you see wrong with boolean_2?
is 100 less than or equal to 100? Does that sounds right is that wrong?


#9

it still does not work


#10

this does not work

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

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

boolean_3 = True && True = True


#11

You want to post the results of the equations.
True = That is Right!
False = That is Wrong!

so if you have a equation 77 < 78 is 77 less than 78? the && Checks to see if both statements are equal to each other.
is 77 less than 77? ask yourself these questions.

so Say i ask myself does Apple = Apple is that true or false? && does Banana = Apple is that true or false?


#12

i made boonlean_1 wrong and it still says boonlean 2 is wrong but it should say boonlean1 is wrong

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! True

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

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

boolean_3 = True && True = True

Oops, try again. It looks like your value for boolean_2 isn't correct.


#13

Soo if you have True && False
what would be the results of True = False? would it be True or False?
if 77 < 78 is True and 77 < 77 is False
True = False ?


#14

what?????????????????
i have to put 20 letters so i have to yous that many ? but now i dont need to i was going to go with just that but it seid it was spamm


#15

this is my code

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

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

boolean_3 = True && True = True


#16

               1 = 1  && 2 = 2
boolean_1  = true && true
                 5 >= 4 && 3 <= 2
boolean_2  = true && false
                 1 != 1 && 1 != 2
boolean_3 = false && true 
                3 <= 0 && 3 >= 0
boolean_4 false && false

read this and compare it to yours


#17

im done for the day so if you have a answer tell me on monday


#18

Set it to only the computed value, not an expression.

true   &&   (100 >= 100)   // treat the second operand as one expression
true           true

true && true  == true

This is Ruby, not Python. true vs True, false vs False

I added the brackets above for illustration, not because they are needed.


#19

Sorry that was my fault. I realized that i was using Pythons code not ruby.


#20

that is what i did here is my code

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

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

boolean_3 = True && True = True

it still say
Oops, try again. It looks like your value for boolean_2 isn't correct.