Program Error Help - Python 3.1

Terry Reedy tjreedy at udel.edu
Fri Mar 31 19:33:35 EDT 2017


On 3/31/2017 7:12 PM, 2019.cavanaughc at fpsedu.org wrote:
> Hello I've been coding for about 1 or 2 months

If at all possible, start with 3.6, not 3.1.
> and i have encountered a problem with a 'while' statement.

You should assume that your code is buggy. That is true even of experts.
 > It keeps looping even when the statement is false,
False.
> here is the code.
> while answer8 != ("1") or answer8 != ("2"):

which is always True.
-- 
Terry Jan Reedy


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /