file extension
The part of a file name after the last dot, such as .py or .txt, that tells programs what kind of file it is.
In more detail
The extension is a naming convention: changing it does not change what is inside the file, only which program opens it. Windows hides extensions by default, which makes it easy to save a file with a double ending such as notes.txt.txt by mistake.
Example
Python programs end in .py, so hello.py.txt will not run as a program.Related terms
- .py file — A plain text file whose name ends in .py, holding Python source code that the interpreter can run or import.
- text file — A file holding only readable characters arranged in lines, such as a .txt, .csv or configuration file, as opposed to a binary file such as an image.
- NodeNext — A module and moduleResolution setting that makes TypeScript follow exactly the module rules of current Node.js.
- declaration file — A file ending in .d.ts that contains only type information describing JavaScript that exists elsewhere, with no runnable code.
Taught in
- Editors, IDEs And Shells — Hands-on Python: Complete Video Course & Book
- Installing Python On A Mac — Hands-on Python: Complete Video Course & Book
- The Idle Editor And Running Programs — Hands-on Python: Complete Video Course & Book
- Sample Graphics Programs — Hands-on Python: Complete Video Course & Book
- Windows And Mac Specifics — Hands-on Python: Complete Video Course & Book
- tsconfig.json: target, lib, strict And NodeNext — Production TypeScript