Re: What is the difference between list() and list?

2015-06-02 Thread John Gordon
In 3ada3275-68c9-421c-aa19-53c312c42...@googlegroups.com fl rxjw...@gmail.com writes: I find the following results are interesting, but I don't know the difference between list() and list. 'list()' invokes the list class, which creates and returns a new list. Since you haven't passed any

What is the difference between list() and list?

2015-06-02 Thread fl
Hi, I find the following results are interesting, but I don't know the difference between list() and list. nums=list() nums [] xx=list xx type 'list' nums [] print(xx) type 'list' print(nums) [] Could you tell me that? Thanks, --

Re: What is the difference between list() and list?

2015-06-02 Thread Joel Goldstick
On Tue, Jun 2, 2015 at 5:33 PM, fl rxjw...@gmail.com wrote: Hi, I find the following results are interesting, but I don't know the difference between list() and list. nums=list() nums [] xx=list xx type 'list' nums [] print(xx) type 'list' print(nums) [] Could you tell