Re: (New to Python) Shopping List Code

2019-10-28 Thread Andrea D'Amore
On Mon, 28 Oct 2019 at 14:42, ferzan saglam wrote: > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > item = input() > item != -1: Try these

Re: (New to Python) Shopping List Code

2019-10-28 Thread Peter J. Holzer
On 2019-10-28 06:42:46 -0700, ferzan saglam wrote: > How can I stop this code when -1 is typed or at a maximum item count of ten. I'm just rewriting that sentence in Python: > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > >

Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX
> On Oct 28, 2019, at 8:42 AM, ferzan saglam wrote: > > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > > > total = 0

Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX
Bev > On Oct 28, 2019, at 8:42 AM, ferzan saglam wrote: > > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > > > total = 0

(New to Python) Shopping List Code

2019-10-28 Thread ferzan saglam
How can I stop this code when -1 is typed or at a maximum item count of ten. At the moment the code seems to be in a infinite loop meaning it keeps on asking for an entry until -1 is typed total = 0 while True: