Smital Desai (6)

Python’s random module : Real-valued distributions

Hello Pythonistas , In my opinion the better to understand distributions is to visualize them. Lets say , you would like to create random numbers between 2000 and 3000 such that the generated values are uniformly distributed over the range. Here we are creating 1000 values…

Continue reading...

Understanding decorator pattern with Python

Hello Pythonistas, Lets implement decorator pattern in Python. I am a big fan of Head first design patterns book so lets take an example from that book. When we go to coffee shop like Starbucks or Barista , sometimes we also like to add toppings…

Continue reading...