While Loops Python User Input Command Matlab