problem about chapter04/car_rental.py

Author: shaoeChenCreated Aug 11, 2021Updated Jan 3, 2022

image

as show above,
you define a variable POISSON_UPPER_BOUND = 11 ,
and you have a comment , # If n is greater than this value, then the probability of getting n is truncated to 0

image

then the loop, just consider 0 to 10, not 0 to 20,
In fact, we should execute 0-20, but because of probability issues, we only execute 0-10, right?

I just want to confirm that my concept is correct, thank you for your guidance

Source: ShangtongZhang/reinforcement-learning-an-introduction