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
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
>
>
> 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
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
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: