'int' object is not callable when the object is a list? Python
        Posted  
        
            by controlfreak123
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by controlfreak123
        
        
        
        Published on 2010-03-17T05:32:37Z
        Indexed on 
            2010/03/17
            5:41 UTC
        
        
        Read the original article
        Hit count: 385
        
coinCount = [2 for i in range(4)]
total = sum(coinCount)
This gives me
TypeError: 'int' object is not callable
I don't understand why because
print type(coinCount)
Gives me
type <'list'>
© Stack Overflow or respective owner