turn number into integer list python code example
Example 1: number to list in python
# Declare a number
a = 12345
#Number to list
a_list = [int(x) for x in str(a)]
Example 2: python int in list
myList = [1,2,3,4,5]
if 3 in myList:
print("3 is present")