S
Sumitava Mukherjee
Hi all,
I am a novice programmer in Python.
Please could you explain me the results (regarding logical operators).
I get this:
True
[This is ok because (any) string is True, so; (True and True) gives
True]
Devil
[This is what I don't get ]
and for that matter,I also checked out this:
10
What is python doing when we type in ('God' and 'Devil') or key in (01
and 10) ?
I am a novice programmer in Python.
Please could you explain me the results (regarding logical operators).
I get this:
True
[This is ok because (any) string is True, so; (True and True) gives
True]
Devil
[This is what I don't get ]
and for that matter,I also checked out this:
10
What is python doing when we type in ('God' and 'Devil') or key in (01
and 10) ?