d_num = []
d_num.append(input("Enter a figure to verify if is a Disarium number: "))
With the above code, an input of 135 and print(d_num), would return '135' opposed to '1, 3, 5'.
A quick-fix would be, prompt the user to include whitespace or other characters between digits and use the split command. However, that poses a problem because the output calculation is based upon the index of the digit.
For example:
input: 135 output: true, 135 == Disarium number as 1^1 + 3^2 + 5^3 = 135
Is there an easier way to convert user input, despite type, into a list?
list(input('enter something'))? It's not clear to me how you want to proceed after that.