Skip to the content ForoHackers
Log inJoin

TypeError: 'int' object is not callable. El cuatro no contesta

Computer science educationDebuggingPython
#20574 · · Quote · Report

si quedan dos mesas con dos y tres jugadores, quiero cinco. en mi cuaderno puse sum([2,3]) y me dio TypeError: 'int' object is not callable. a la de al lado le dio cinco. hasta el momento vamos perdiendo las dos mesas contra Python.

#20651 · · Quote · Report

¿qué te muestra si ponés solamente sum, sin pedirle que haga nada?

#20652 · · Quote · Report
  1. ella ve <built-in function sum>. nunca competí contra alguien que traía otro sum.
#20653 · · Quote · Report

Vuelve hacia arriba. ¿El cuatro cuenta mesas, jugadores o rondas? Que veo venir el arreglo de ponerle cuatro al resultado.

#20654 · · Quote · Report

sum = 4. las mesas que nos prestaron. dos vacías de puro adorno, neta.

#20655 · · Quote · Report

The empty notebook can see Python's built-in by that name. Your notebook is looking at the thing you last called sum. What do you call those four when you talk to the volunteers?

#20656 · · Quote · Report

mesas_prestadas. lo cambié donde se asigna y reinicié el cuaderno para probar de arriba abajo. sigue habiendo cuatro mesas y ahora también cinco jugadores.

#20657 · · Quote · Report

certificado de proximidad al éxito: lo tenías a dos sillas de distancia.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply