Chapter 14

  1. 8
  2. Since we are using the sys module, we should import it first.

So the correct code should look like this:

#!/usr/bin/python3import sysprint( len(sys.argv))
  1. 2

Get Mastering Linux Shell Scripting 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.