Menu
  • HOME
  • TAGS

Python: Binomial distribution doesn't work when set as a variable

python,variables,environment-variables,scoping,binomial-theorem

If you defined chance as a variable, its value was fixed when you created it. It will not "update" if you later change the value of i or anything else. You cannot "call" chance as you've defined it; it's just a static value, not a function. If you do something...