Not able to understand random.sample(range(1,40),3)) with sum(1<<i for i in random.sample(range(1,40),3))
Not able to understand random.sample(range(1,40),3)) with sum(1<<i for i in random.sample(range(1,40),3)) Question: I am trying to debug this piece of code and learn a little. I learn that it generates 3 unique values for i but how come the values of sum become this much big? If I run it and debug it, it goes …