Re: [Tutor] skip/slice more than every second?

2015-09-29 Thread Peter Otten
questions anon wrote: > thankyou but I just realised I wrote the question wrong - > > how do I do the inverse of above > so > hide 1 show 2,3,4 hide 5, show 6,7,8 etc. > > thanks in advance You can use del on a slice: >>> a = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] >>> del a[::4] >>> a [2, 3, 4,

Re: [Tutor] skip/slice more than every second?

2015-09-29 Thread Sebastian Cheung via Tutor
print range(1,15,4) ans: [1, 5, 9,13] Sent from my iPhone > On 29 Sep 2015, at 04:16, questions anon wrote: > > a = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] > > how can I show the first then skip three and show the next and so on? > For example: > show 1 > then skip

Re: [Tutor] skip/slice more than every second?

2015-09-29 Thread Alan Gauld
On 29/09/15 04:33, Sebastian Cheung via Tutor wrote: On 29 Sep 2015, at 04:16, questions anon wrote: a = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] how can I show the first then skip three and show the next and so on? > print range(1,15,4) > > ans: [1, 5, 9,13] > While

[Tutor] Merging of two separate flask apps

2015-09-29 Thread Sebastian Cheung via Tutor
Hi, I am trying to merge two flask apps, both from Miguel Grinberg's Flask-SocketIO-Chat into another one of his Microblog so that after user login to the main microblog then the other Chat app could be launched if user selects of the options, which in this case is the Chat. The idea is

Re: [Tutor] Regarding installing a python package

2015-09-29 Thread Laura Creighton
In a message of Mon, 28 Sep 2015 19:28:47 -0700, Chirag Shahani writes: >Hi, > >Could any one please help me understand the following: > >Suppose I install a python package using python setup.py install provided >by the developer of a package. I need to track that changes in my file >system..

Re: [Tutor] skip/slice more than every second?

2015-09-29 Thread Alan Gauld
On 29/09/15 08:33, Peter Otten wrote: hide 1 show 2,3,4 hide 5, show 6,7,8 etc. thanks in advance You can use del on a slice: And just for kicks you can use a list comprehension: print [n for i,n in enumerate(a) if i%4] hth -- Alan G Author of the Learn to Program web site

Re: [Tutor] Merging of two separate flask apps

2015-09-29 Thread Alan Gauld
On 29/09/15 11:06, Sebastian Cheung wrote: The idea is learn how to merge different Flask apps as one. Please don't hijack an existing thread for new topics, it messes up the archive for searching. However, in this case the question is very Flask specific and would be better directed to a

[Tutor] Regarding installing a python package

2015-09-29 Thread Chirag Shahani
Hi, Could any one please help me understand the following: Suppose I install a python package using python setup.py install provided by the developer of a package. I need to track that changes in my file system.. meaning what new directories and files got created? Also, what is the concept of

Re: [Tutor] Regarding installing a python package

2015-09-29 Thread Oscar Benjamin
On Tue, 29 Sep 2015 at 10:47 Chirag Shahani wrote: > Hi, > > Could any one please help me understand the following: > > Suppose I install a python package using python setup.py install provided > by the developer of a package. I need to track that changes in my file >

[Tutor] Beautiful Soup

2015-09-29 Thread Crusier
Hi I have recently finished reading "Starting out with Python" and I really want to do some web scraping. Please kindly advise where I can get more information about BeautifulSoup. It seems that Documentation is too hard for me. Furthermore, I have tried to scrap this site but it seems that

Re: [Tutor] Beautiful Soup

2015-09-29 Thread Joel Goldstick
On Tue, Sep 29, 2015 at 11:47 AM, Crusier wrote: > Hi > > I have recently finished reading "Starting out with Python" and I > really want to do some web scraping. Please kindly advise where I can > get more information about BeautifulSoup. It seems that Documentation > is too

Re: [Tutor] Beautiful Soup

2015-09-29 Thread Peter Otten
Crusier wrote: > I have recently finished reading "Starting out with Python" and I > really want to do some web scraping. Please kindly advise where I can > get more information about BeautifulSoup. It seems that Documentation > is too hard for me. If you tell us what you don't understand and

Re: [Tutor] Regarding installing a python package

2015-09-29 Thread Chirag Shahani
Thanks a lot for the response. I understand better now. On Tue, Sep 29, 2015 at 7:28 AM, Oscar Benjamin wrote: > On Tue, 29 Sep 2015 at 10:47 Chirag Shahani > wrote: > >> Hi, >> >> Could any one please help me understand the following: >>

Re: [Tutor] Beautiful Soup

2015-09-29 Thread Laura Creighton
>> Hi >> >> I have recently finished reading "Starting out with Python" and I >> really want to do some web scraping. Please kindly advise where I can >> get more information about BeautifulSoup. It seems that Documentation >> is too hard for me. >> >> Furthermore, I have tried to scrap this site

Re: [Tutor] Beautiful Soup

2015-09-29 Thread Nym City via Tutor
Hello, I have personally found this tutorial to be helpful. Check it out: https://www.youtube.com/watch?v=3xQTJi2tqgk Thank you. On Tuesday, September 29, 2015 12:05 PM, Joel Goldstick wrote: On Tue, Sep 29, 2015 at 11:47 AM, Crusier