Write a Python function to return star numbers


Topic: Write a Python function to return star numbers

Solution

def star_number(n):
    return 6*n*(n-1)+1
    



List all Python Programs