how to convert an integer into a list of numbers in python code example
Example 1: python make integer into a list
res = [int(x) for x in str(num)]
Example 2: python int in list
myList = [1,2,3,4,5]
if 3 in myList:
print("3 is present")
res = [int(x) for x in str(num)]
myList = [1,2,3,4,5]
if 3 in myList:
print("3 is present")