python - Different response of min() and max() to separate data -


i having strange ( beginner) problem:

val1, val2, val3 3 separate int values ( separate computations )

min(val1,val2,val3) returns correct minimum

max(val1,val2,val3) fails

typeerror: 'int' object not callable

somehow afraid overloaded max definition, not sure how or where.

it seems override max() function in computations.

you can check it

print( type(max) ) 

and should get:

  • for function

    <class 'builtin_function_or_method'> 
  • for integer value

    <class 'int'> 

but can reset it

del max 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -