I am out of trial and error again Lists
Rustom Mody
rustompmody at gmail.com
Fri Oct 24 12:56:31 EDT 2014
On Friday, October 24, 2014 10:18:12 PM UTC+5:30, Chris Angelico wrote:
> On Sat, Oct 25, 2014 at 3:37 AM, Seymore4Head 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
Right.
Good.
Sorry for being impatient Seymore
You are now making progress
More information about the Python-list
mailing list