Mix 'n' Match


#1

Could any one help me to solve this program?


#2

for an and statement to be true, both conditions must be true. In several of your statements, the second condition is not true because those two strings "Alpha" and "Bravo" are not equal (they are equal in length, but not the same).


#3

Ok. Then what i have to write in it.


#4

well in Line 7 you have an equal statement with (2 ** 1) or "Alpha" == "Bravo" but you added in = 2 for some reason. You don't have to equal it to anything because it will work out the value of (2**1) itself.


#5

I did understand this. I have created correct values in it. could you please help me to solve this?


#6

Good job on fixing that! Now, your problem is your boolean operator. You need to replace and with or for your bool_two to come out true.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.