I am out of trial and error again Lists

Denis McMahon denismfmcmahon at gmail.com
Fri Oct 24 16:37:31 EDT 2014


On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head wrote:

> I tried list(range(10)  

This is missing a ")"

It probably sat there waiting for you to finish the line.

list(range(10))

You have two "(" in the line, you need two ")" to match them. 

> I thought that would work in Python 3.  It
> didn't.

It does if you enter it properly.

also try:

str(list(range(10))) 

Note that that has three "(" and three ")" on the line.

-- 
Denis McMahon, denismfmcmahon at gmail.com



More information about the Python-list mailing list