3 Interpreter: Key Terms: Reading: Severance 1 Exercise: Write A Program That Greets The User With A Hearty Salutation
3 Interpreter: Key Terms: Reading: Severance 1 Exercise: Write A Program That Greets The User With A Hearty Salutation
3 Interpreter
Key terms: python3 >>> .py # import
Reading: Severance 1
The interpreter can be invoked in both an interactive and a batch mode and
you should expect to use both. The former, whose prompt is >>>, allows
iteratively composing and assembling expressions. The latter runs whole
programs that are stored on disk.
(It is possible to avoid specifying the interpreter every time, but you can
safely ignore this optional technique. When the hashbang line8 , #!/usr/local/bin/python3,
is atop the file, and the executable permission is set, and the program path
unambiguous, the shell will launch Python on your behalf:)
7 https://docs.python.org/3/library/index.html
8 https://en.wikipedia.org/wiki/Shebang_(Unix)