What is the primary purpose of the 'requirements.txt' file when sharing Python projects with others?
A. To store Python code
B. To list project dependencies
C. To execute Python scripts
D. To write Python documentation
The 'requirements.txt' file is used to list project dependencies, facilitating easy installation of dependencies for others.