What is the purpose of requirements.txt file in Python projects?
Correct answer
C. To list all the dependencies required by the project
18 views
C. To list all the dependencies required by the project
18 views
The requirements.txt file in Python projects is used to specify the dependencies required by the project. It typically contains a list of package names and their versions, allowing other developers to install the exact same set of dependencies by running 'pip install -r requirements.txt'.
Not sure why the answer is C? Ask here and get an explanation.