Re: [Tutor] double ended queue

2017-11-04 Thread Martin A. Brown
Hello and welcome duplicative Atux, >i am new to the area and i am struggling with a small project that i have. >i need some help please. New to Python, perhaps. New to programming, as well? >i need to create a program that runs constantly unless the user >presses q to end it. This is a good

Re: [Tutor] double ended queue

2017-11-04 Thread Steven D'Aprano
On Sat, Nov 04, 2017 at 10:11:08PM +0200, Atux Atux wrote: [...] > i got the starting point where it asks the user and goes until 'q' is > pressed. > > while True: > if input("\n\n\nType a number to add it to the queue or q to > exit: ") == 'q': > break > > but i a stuck on how to c

Re: [Tutor] double ended queue

2017-11-04 Thread Alan Gauld via Tutor
On 04/11/17 20:11, Atux Atux wrote: > i am new to the area and i am struggling with a small project that i have. You are on the right path. When faced with any software project you have to keep breaking it down till you get to something you can write. You've made a start, lets see what else needs

[Tutor] double ended queue

2017-11-04 Thread Atux Atux
i am new to the area and i am struggling with a small project that i have. i need some help please. i need to create a program that runs constantly unless the user presses q to end it. the program asks the user for a number and puts the number in a queue, then it prints the queue with the new eleme