Module 7

File extensions

What .py, .txt, .fasta mean.

The name tells you the type

A file's extension is the part after the last dot. It tells you what kind of file it is. .py is Python code, .txt is plain text, .fasta is a sequence file.

PythonCommon file extensions.
# Examples of file names:
# script.py      Python code
# data.txt       plain text
# sequences.fasta   biological sequences

What does the .txt extension indicate?