human
how to create histogram with bin in.
assistant
Here is a Python function to create a histogram with bin

import numpy as np

def hist_bin(data, bin):
        """
        Create histogram with bin.
        """
        return np.histogram(data, bins=bin)

# Enter the data
data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Enter the bin
bin = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
hist = hist_bin(data, bin)

# Printing the histogram
print(hist)

#Example Output
# (array([0, 1, 1, 1, 1, 1, 1, 1, 1, 2]), array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10]))

#Remember to inspect code for bugs.