Answer:
def k_in_num(k, num):
if (k == 0): return False
return str(k) in str(num)
Step-by-step explanation:
A bit weird that 0 doesn't contain 0, but anyway, above code does what you want.
1.6m questions
2.0m answers