human
Give me a Python function to initialize the pagerank vector.
assistant
Here is a Python function to initialize a pagerank vector

import numpy as np

def init_pr_vec(n):
    """
    Initialize pagerank vector.
    """
    pr_vec = np.zeros(n)
    pr_vec[0] = 1
    return pr_vec

# Enter the number of nodes
n = 10

# Calling the function
pr_vec = init_pr_vec(n)

#Remember to inspect code for bugs.