nerdexam
Cisco

300-550 · Question #20

What is the best way to specify the location of Python within a script?

The correct answer is B. #!/usr/bin/env python. See the full explanation below for the reasoning.

Question

What is the best way to specify the location of Python within a script?

Options

  • A#!/usr/bin/env bash
  • B#!/usr/bin/env python
  • C#!/usr/loca 1/bin/python
  • D#!/usr/bin/python
  • E#!/scriptname

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    80% (16)
  • C
    10% (2)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 300-550 Practice