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 ...

Get Core Python Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.