[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

Re: [Tutor] double ended queue

2017-11-05 Thread Atux Atux
Hi. Thanks a lot for the replies. i am actually nw to programming as well. your code keeps asking the user for a number and puts it to the end. how can i make it to add a number at the beginning if the user adds 01, then the program it will strip 0 and add 1 at ythe beginning, please? John On Su

Re: [Tutor] double ended queue

2017-11-05 Thread Atux Atux
ok then. how do i link 'r' to remove an item from right with mylist.pop(0) and how can i remove an item from left with '0r'? On Sun, Nov 5, 2017 at 11:27 AM, Steven D'Aprano wrote: > On Sun, Nov 05, 2017 at 10:07:31AM +0200, Atux Atux wrote: > > Hi. Thanks a

[Tutor] download google contacts

2017-12-05 Thread Atux Atux
hi everyone. i am new to the area of python and i have basic knowledge, so please bear with me. i am looking for a way to download only the contacts from my google account and export them in my linux machine in a txt file, every12 hours with cronjob and overwrite the old txt file. let's make some