Learning python and am confused on how to code this problem in order for the function to return these statements... please help!

Answer:
def k_in_num(k, num):
if (k == 0): return False
return str(k) in str(num)
Explanation:
A bit weird that 0 doesn't contain 0, but anyway, above code does what you want.