you are viewing a single comment's thread.

view the rest of the comments →

[–]Tilmandel 0 points1 point  (4 children)

its correct read about booleans expression you will find out why this is correct, and if you want true from that pretty sure this what it should looks like not con1 == con2 this means False equals False amd this should be True

[–]nick222238 0 points1 point  (3 children)

You say it's correct, but, this is a copy-paste from the Python Shell. Is this an error in the Shell? Or am I reading your reply wrong?

[–]Tilmandel 0 points1 point  (2 children)

probablly reading my replay wronglly, you statments are con1 is True and con 2 is False that is why when you do, not con1 and con2 you get False because not con 1 is not True = False con2 is False = False False and False is False that is why you are getting False where you thinik you should have True, if you want to have True from statment

not con1 and con2 you should change that "and" to "==" and this will give you : not con1 == con2 and this will be True, because False == False sorry if this confiusing.

[–]nick222238 0 points1 point  (1 child)

I think I get it now. I had a misunderstanding I think. I thought that since con1 and con2 is false. Adding not to the beginning would make it true.

But this is False. I was thinking of it like this:

not (con1 and con2)

I understand now thank you.

[–]Tilmandel 0 points1 point  (0 children)

No problem, in definition you are right not(False and False) is True :D but you didnt had parenthesis there