title: How to add specific bin width in python code
body: <p>I am new in python so bear with me.</p>
  
  <p>I wrote a code to generate random numbers in python, then plotted it but did not know how to put the bin width in the code! my bin width should be 0.1</p>
  
  <p>This is my code:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  import random
  
  data = [random.randint(1,100) for _ in range(10000)]
  
  plt.hist(data)
  
  plt.show()
  </code></pre>