DS‐ Lab Journal ‐ Scripting #2 - 229300/Ultra-Instinct GitHub Wiki
1. What extension does a bash script use and what extension does a python script use?
From what we’ve used so far, Bash uses .sh as its extension while Python uses .py.
2. What does a bash script start with?
A bash script starts with something called a shebang. An example is: #! /bin/bash
3. In python, words after the # symbol are used for what?
In Python, indentation indicates a new line of code
4. Why is it necessary to include python3 before the script name when running a python script but not a bash script?
It’s necessary to include python3 because the operating system needs to know which interpreter it needs to use to read and execute the script, bash scripts begin with shebangs.