r/PythonBeginners • • Jan 10 '20
Why ?
F = False J = True both = F and J print(both)
Gives False as result, what does it compare to, how does it know it’s false ?
5
Upvotes
r/PythonBeginners • • Jan 10 '20
F = False J = True both = F and J print(both)
Gives False as result, what does it compare to, how does it know it’s false ?
6
u/5-MinutePython Jul 15 '22
you can think like this False = 0 and True = 1.if we multiplied 0 with 1 it's equals to 0. that's why it's print Flase.
1
u/systemisrigged Jan 18 '24
Guys I am new to python - I have put code into vscode and then press the play button and it ALWAYS says Syntax error -
I have chosen auto save but it still does this
Any ideas ?
I can’t even start to learn because of this
1
u/[deleted] Apr 03 '26
good question,
look, 'and' means everything
when you write True and False
and checks if everything is True
if not, it returns False
here, False means everything not True
1
u/[deleted] Feb 12 '22
[removed] — view removed comment