def C(v,d,l= None):
if l == None:
l = v
print(l)
term = 0
for i in range(1, min (d,v,l) +1):
z = v-i
numiz= binomial (d-1,d-1) *binomial (v,z)
term=term+numiz
print("For", i, "nonzero degrees and", z, "zero degrees, there are", numiz, "terms.")
i=i+1
if i == min(d,v,l)+1:
print("Using", v, "variables over", d, "degrees and sequence length of", l, ",", term, "is the total number of possible terms using", min(v,l), "variables.")
C(6,3)