TypeError in python

>>> my_list = ['p','r','o','b','e'] 
>>> my_list[4.0]
...
TypeError: list indices must be integers, not float

No comments:

Post a Comment