I am out of trial and error again Lists

Seymore4Head Seymore4Head at Hotmail.invalid
Fri Oct 24 13:03:47 EDT 2014


On Sat, 25 Oct 2014 03:47:51 +1100, Chris Angelico <rosuav at gmail.com>
wrote:

>On Sat, Oct 25, 2014 at 3:37 AM, Seymore4Head
><Seymore4Head at hotmail.invalid> wrote:
>> When I use list(range(10)) I get:
>> Traceback (most recent call last):
>>   File "C:/Functions/name to number digit.py", line 37, in <module>
>>     print (nametonumber(a))#1800 438 2427 837
>>   File "C:/Functions/name to number digit.py", line 10, in
>> nametonumber
>>     if y in lst(range(1,10)):
>> TypeError: 'list' object is not callable
>
>Now, finally, you're showing us an actual line of code and an actual
>traceback. And from here, we can see that you misspelled "list".
>That's why it isn't working.
>
>Several people have told you to use the interactive interpreter. Please do so.
>
>ChrisA

Actually I was a little frustrated when I added that line back in as
the other lines all work.
Using list(range(10)) Doesn't throw an error but it doesn't work.

http://i.imgur.com/DTc5zoL.jpg

The interpreter.   I don't know how to use that either.




More information about the Python-list mailing list