Nomor untuk Daftar di Python
# Declare a number
a = 12345
#Number to list
a_list = [int(x) for x in str(a)]
Successful Starling
# Declare a number
a = 12345
#Number to list
a_list = [int(x) for x in str(a)]
res = [int(x) for x in str(num)]
num = [1, 2, 3, 4]
s = [str(i) for i in num] # Converting integers into strings
result = str("".join(s)) # Join the string values into one string
print(result)
l = list(str(n))
res = list(map(int, str(num)))
myList = [1,2,3,4,5]
if 3 in myList:
print("3 is present")