[Tutor] Trouble Learning Python

David Rock david at graniteweb.com
Sat Jan 30 16:58:02 EST 2021


* Alan Gauld via Tutor <tutor at python.org> [2021-01-28 09:25]:
> On 28/01/2021 00:17, andy-rhodes wrote:
> 
> > 2.3 Add two Boolen variables together to equal 0 and again to equal 1.
> 
> First off I've got to say that this is a terrible question. It's
> asking you to do something you should never do in practice.
> Addition is not a boolean operation. It only works because internally
> python implements boolean values as integers! That's a fact
> you should just ignore and only use boolean operators on
> boolean values, it will help keep you sane!

These appear to be questions from some kind of coursework.  Is it available
online and do you have a link you can share with us so we can read it
ourselves?  There may be some transcription challenges happening that we may be
able to clear up if we can see it.

-- 
David Rock
david at graniteweb.com


More information about the Tutor mailing list