Suever's approach is a neat way to do this. However, if you don't need the actual number as a number, and you only need the separate digits, then you can specify directly that you want the numbers as a string in the input-call.
StudentNo = input('Please input student number: ', 's')
Here, the 's' specifies that the input is a string. This way you can input the StudentNo without having apostrophes.
StudentNo = input('Please input student number: ', 's')
Please input student number: 54456842
StudentNo =
54456842
You can now use any of the two approaches in Suever's answer to convert this to separate numbers. Another option is to simply do the subtraction by '0' in the call itself:
StudentNo = input('Please input student number: ', 's')-'0'
Please input student number: 54456842
StudentNo =
5 4 4 5 6 8 4 2
Since this is a bit hard to read, you can also have this as an anonymous function:
stid = @() input('Please input student number: ', 's')-'0';
And call it like this:
stid()
Please input student number: 123456
ans =
1 2 3 4 5 6