0

Im learning python but I dont understand what this line does? or how many options there is?

JFC
  • 3

1 Answers1

1

This line is called a shebang and it tells the kernel which interpreter to use on the script.

For example, if a script is named with the path path/to/script, and it starts with the line #!/bin/sh, then the program loader is instructed to run the program /bin/sh, passing path/to/script as the first argument.

In your instance, the kernel will use whatever /usr/bin/python points to (I think it is by default python3.6).

wjandrea
  • 14,504
j-money
  • 2,516
  • 1
  • 11
  • 20