14.9. Exercises
14-1. Callable Objects. Name Python's callable objects.
14-2. exec vs. eval(). What is the difference between the exec statement and the eval() built-in function?
14-3. input vs. raw.input(). What is the difference between the built-in functions input() and raw_input()?
14-4. Execution Environment. Create a Python script that runs other Python scripts.
14-5. os.system(). Choose a familiar system command that performs a task without requiring input and either outputs to the screen or does not output at all. Use the os.system() call to run that program.
14-6. commands.getoutput(). Solve the previous problem using commands.getoutput().
14-7. popen().Family. Choose another familiar system command that takes text from standard input and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access