The function getch() from the previous example should have returned a value, that is the character which had been typed in.
But os.system() doesn't return the result of the command string.
os.system() is implented as a call to the standard C-function system().
The return value of os.system() is not defined by POSIX and so it varies on different operating systems .