how to convert a number into list of digit in python code example Example: python int in list myList = [1,2,3,4,5] if 3 in myList: print("3 is present")